| title “Week 1 R Exercises” |
| author:‘Grace West’ |
| output:html_document |
Below are questions to answer using R, based on the documents you just read. Enter your answers in this Rmd file, using the space provided below each question! Then upload this Rmd file when you are done.
When you are done, you should be able to click the “Knit” button and see a pretty version of your assignment. But if this last step doesn’t work for you, it is not crucial. No points will be deducted.
In the Intro to R document, you recreated some of the displays and preliminary analysis of Arbuthnot’s baptism data. Your assignment involves repeating these steps, but for present day birth records in the United States. Load the “present” data in R with the following command.
source("http://www.openintro.org/stat/data/present.R")
If the above command is successful, then it should run and not return
any output. The data will be stored in a data frame called
present.
1940 - 2002 Years, boys, girls
# (YOU CAN ADD LINES IF NEEDED)
The U.S plot is not on a similar scale at all, their counts are several hundred times larger than Arbuthnot’s
# ENTER YOUR R COMMAND(S) HERE
# (YOU CAN ADD LINES IF NEEDED)
ENTER TEXT FOR YOUR ANSWER HERE.
# ENTER YOUR R COMMAND(S) HERE
# (YOU CAN ADD LINES IF NEEDED)
In the year, 2000
# ENTER YOUR R COMMAND(S) HERE
# (YOU CAN ADD LINES IF NEEDED)