Skip to content

Latest commit

 

History

History
88 lines (57 loc) · 3.14 KB

File metadata and controls

88 lines (57 loc) · 3.14 KB

Intro to R, 2018 Fall

John Little 2018-11-29

Binder

README

This repository contains supporting datasets and files for our Intro to R workshop by the Data & Visualization Services Department, Duke University Libraries. You can find more information about our future and past workshops

Outline

  1. Download the zipped repository Download ZIP button

  2. Unzip/expand the zipped repo as a folder in your Documents Directory

  3. Launch RStudio

  4. File > New Project...

  5. Existing Directory: Browse to your unzipped copy in the documents directory

    1. Literate Coding: brief explanation
      1. New Code Chunk: Ctrl+Alt+I
      2. R Markdown: brief explanation
    2. library(tidyverse)
  6. Load & View Tibble (data frame)

  7. Data Structure & Data Types (brief)

  8. dplyr -- part of tidyverse

    1. filter rows
    2. arrange rows by variables
    3. select columns
    4. mutate derive cells / new variables
    5. count column totals
    6. summarize grouping reports
  9. Now You Try It. Hands on exercises.

    1. exercise_01.Rmd
    2. exercise_02.Rmd
    3. answers.Rmd
  10. Basic Exploratory Data Analysis

    1. Read in new datasets
    2. library(skimr)
  11. More dplyr -- join two datasets

    1. left_join to merge data
  12. More Visualize with ggvis (syntactically simpler than ggplot2, but...)

    1. Basic visualization (Scatter Plot, Box Plot, Histogram, Bar Chart)
    2. Take the ggplot2 workshop, or see the materials
    3. Resource: https://rfun.library.duke.edu/intro2r/visualization.html
  13. Our Training Materials

    1. R we having fun yet‽ https://rfun.library.duke.edu. Training materials for R.

      • 2018 Workshops: Intro to 2 / Visualization / Shiny / Mapping / Git / R Markdown
    2. Full DVS workshop series

  14. Questions: Walk-in schedule and by appointment Data Science Consulting

License

Shareable via Creative Commons: CC-BY-NC
"CC BY-NC"