Learning Quote of the Day

"You don't learn to walk by following rules.

You learn by doing, and by falling over."

  • Richard Branson

Sharing RStudio Project

DEMO

Install packages

  • Remember that you need to select R 3.2 in the top right corner of RStudio Server
needed_pkgs <- c("nycflights13", "dplyr", "ggplot2", "knitr", 
  "ggplot2movies", "dygraphs", "rmarkdown", "mosaic", "tibble")

new.pkgs <- needed_pkgs[!(needed_pkgs %in% installed.packages())]

if(length(new.pkgs)) {
  install.packages(new.pkgs, repos = "http://cran.rstudio.com")
}

Plicker time!

Course Textbook

Working in RStudio with R Markdown

DEMO

Next class (Monday) plans

  • Answer questions for first 10-15 minutes to help prepare you for the quiz
  • You'll have the chance to talk about anything you are struggling with in groups as well for a few minutes
  • Quiz #1 testing your knowledge of using R, RStudio, and R Markdown based on the Getting Used to R, RStudio, and R Markdown book
    • First you'll take the quiz individually
    • Then we will take a break in class and you'll take the quiz again in groups
    • Then we'll go over it in class
  • Lastly, I'll show you how to do a few more things in R and we'll begin Tidy data in MODERN DIVE.

Assignment for Monday

  • Read Chapter 3 of MODERN DIVE textbook
  • Complete LC3.1 - LC3.6 and other questions in PS2 by 10 AM on Monday
  • Start on Lab 1
    • Lab 1 draft (must attempt all exercises for credit) due on Tuesday at 3 PM
    • Great way to study for the quiz

Getting Lab 1

  • To obtain the lab go to File -> Open File and then paste/type the following next to File name: /shared/isma5720@pacificu.edu/lab1.Rmd
    • Then click on Save As.
    • Enter /home/EMAIL next to File name: where EMAIL corresponds to the EMAIL you log in to RStudio Server with. This will get you back to your home directory.
    • Click on your LastnameFirstname folder.
    • Create a new folder called lab1 in your LastnameFirstname folder, and save the file in the lab1 directory as lab1.Rmd.

Minute Papers

  • Now that you've worked with R some, how do you plan to practice working with it more to begin studying for the quiz?

Tips for quiz success

  • Remember that you'll need to quiz yourself frequently if you want to learn the material. I'll be able to pretty easily identify students that are studying on their own and those that are not quizzing themselves frequently.

  • Keep on studying as often as you can and checking yourself for understanding!