Author Options:

Commands needed in R language? Answered

Hello everyone
I hope that you are fine. Because I am starter, I am facing difficulties in figuring out commands that do the following:

Find the sample mean M and sample standard deviation S
Build the histogram.
Find if the shape of the distribution is close to normal or not.
Add to the histogram plot the line corresponding to the probability density function of the normal distribution using obtained mean and standard deviation.
Set up a 95% CI for the sample mean, using your values of M,S and N

Use the temperature (tempc and tempf) data given in the excel sheet. You can download the excel sheet from following link:

Kind Regards


The forums are retiring in 2021 and are now closed for new topics and comments.