User Tools


Mathematics 241 - Spring 2015

Homework

Getting Acquainted with R

  1. Suppose the following 20 birthweights (in ounces) were recorded at a maternity ward: 131, 120, 112, 88, 114, 128, 133, 104, 108, 94, 133, 124, 84, 132, 107, 144, 93, 114, 116, 120.
    1. Create a file called birthweight.txt with the data in a column labeled Weight.
    2. Read the data into a variable called bw in R.
    3. Use the summary command to find some information about the data. In particular, what are the mean and median of the data?
    4. Plot a histogram of the data, and print it.