R Warm-up Data Analysis Activity Do this activity in one continuous R session and turn in your output from the R Console window. The dataset student.data.txt contains data collected from a sample of 50 introductory statistics students. There are four variables: Gender -- the gender of the student Height -- the height of the student in inches Shoes -- the number of pairs of shoes owned Drink -- the favorite drink of the student among water, pop, and milk. The dataset can be found at http://bayes.bgsu.edu/eda/student.data.txt 0. Use the command Sys.time() to get the current time. 1. Read the data into R using the read.table command and store it in the variable s.data. (By use of the url command you can read the dataset directly from the website.) 2. "Attach" s.data to make the variables available in R. 3. What was the height and number of pairs of shoes owned by the 25th student in the sample? 4. Find the maximum height of the students. Find the mean height of the students. 5. Use the table command to find the number of students who prefer water, milk, and pop. 6. Find the number of students who are taller than six feet. 7. Find the number of women in the sample. 8. Find the number of women in the sample who are taller than 68 inches. 9. Construct a histogram of the Shoes variable. 10. Do men and women have different drink preference? (Construct a table of Gender and Drink.) 11. Construct a scatterplot of Shoes and Height. Do you see any relationship between these two variables? Are there any outliers in the graph? Explain. 12. The Height variable is measured in inches. Create a new variable called c.heights that are heights measured in centimeters. Construct a boxplot of c.heights. (One inch is 2.54 centimeters.) 13. Divide the dataset by gender and create two new datasets called f.data and m.data. 14. Find the median number of pairs of shoes owned by men, and the median number of pairs of shoes owned by women. Is there a significant difference in shoe ownership between the two genders? 15. Again type Sys.time() to find the time that you completed this assignment. How long did it take you to complete this?