This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Assignment 7 (Due Monday, April 25, 2011) 1. Read the dataset students.txt into an R object named as students. (a) What are the mean and standard deviation of height and shoesize? (b) How many female students and how many male students? (c) Recode the population variable with color names (Kuopio=blue Tam- pepre=red), and create a new dataset called studentsnew . (Do not use edit().) (d) Make two subsets of the dataset students. Split it in two according to gender. (e) Make two new datasets of the dataset students that containing individuals below and above the median height. (f) Export the two new datasets in part 5 to belowm.txt and abovem.txt files. 2. Read in the dataset cars.txt and answer the following questions: (a) Make a barplot of both frequencies and proportions on Type as well as the Pie Charts. Plot the Stem-and-leaf Charts on Length . Also draw the histograms with 6 breaks and Boxplot on Length . Name the title of the barplot, pie chart and box plot. Name the x-lab and y-lab of thethe barplot, pie chart and box plot....
View Full Document
- Spring '11
- Standard Deviation