Use this .Rmd file as a template for your homework. Please use D2L to turn in both the PDF output and your R Markdown file in. Your .Rmd file should compile on its own if it is downloaded by your instructor.
Make at least one post in our D2L Discussion boards. If you don’t have any questions to post, post something that may be of interest to the class, or just write a note introducing yourself!
Answer the following questions to help me get to know you and better tailor the course to your background and goals:
Evaluate each of the following R code chunks below and provide a written explanation about what each piece of code does. Note that the R code chunk eval
option is set to FALSE
. Change this option to TRUE
when you compile your pdf.
ski <- data.frame(ski.hill = c('Bridger Bowl','Big Sky','Red Lodge Mtn'),
new.snow = c(TRUE,FALSE,TRUE),
acres = c(2000, 5800, 1600))
Explanation:
ski[1, 3]
Explanation:
subset(ski, new.snow == TRUE)
Explanation:
max(ski$acres)
Explanation:
sum(ski$new.snow)
Explanation: