Quick start introduction to dplyr, simple EDA, basic visualization. Part of the Introduction to R workshop, this repo consists of code examples to be used during the workshop
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
images
.gitattributes
.gitignore
01_dplyr.Rmd
02_join-skim-eda.Rmd
README.Rmd
README.md
answers.Rmd
exercise_01.Rmd
exercise_02.Rmd
intro2r-2019spring.Rproj
license.txt

README.md

Intro to R, 2019 Spring

John Little 2019-01-16

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

    • If using RStudio.cloud or the Duke Docker instance, use the upload button witin the Files tab to uplaod the zipped folder (which is the functional equivalent of the next two steps.)
  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 ggplot2

    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/portfolio/ggplot_workshop/
  13. Our Training Materials

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

    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"