Go to R Studio Cloud workspace for this assignment.
Click on projects.
Look for the file “Week1PracticeProblemsFall2018-student.Rmd” under the Files tab then click on it to open.
Change the subtitle to “Week 2 Practice Problems Solutions” and change the author to your name and student number.
NB: The screenshot below is for week1 problems, but it’s the same idea.
Remember that R code chunks can be inserted directly into the notebook by choosing Insert R from the Insert menu (see Using R Markdown for Class Assignments). In addition this R Markdown cheatsheet, and reference are great resources as you get started with R Markdown.
Download R Markdown questions file directly into RStudio by typing the following code into the RStudio console window.
file_url <- "https://raw.githubusercontent.com/ntaback/UofT_STA130/master/Fall2018/week2/tutorial/Week2PracticeProblems-Fall2018_student.Rmd"
download.file(url = file_url , destfile = "Week2PracticeProblems-student_temp.Rmd")
You will need to install several libraries such as tidyverse
, and mosaic
to complete the questions.
Look for the file “Week1PracticeProblems-Fall2018-student.Rmd” under the Files tab then click on it to open.