Question:
(a) Data on four variables are stored in a file called file1.dat. The first line of the file is the variable names f, x, y and z. Give the R commands to
(i) read the data into a dataframe called dframe,
(ii) make the variables in dframe visible from the command line,
(iii) output to screen the number of observations of the variable f,
(iv) evaluate the sample correlation between y and z, and
(v) test the hypothesis that the population from which f is drawn has mean10.