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
Switch branches/tags
Nothing to show
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
00_flash_pkg_patch.Rmd
01_template.Rmd
01_template.nb.html
02_join-skim-eda.Rmd
02_join-skim-eda.nb.html
README.Rmd
README.md
ZZ_closing-thoughts.Rmd
ZZ_closing-thoughts.docx
ZZ_closing-thoughts.nb.html
Z_03_visualization.Rmd
Z_04_gis.Rmd
answers.Rmd
exercise_01.Rmd
exercise_02.Rmd
install.R
intro2r-2018fall.Rproj
license.txt
runtime.txt

README.md

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"