/intro2r-2018-datafest

quick start introduction to dplyr, simple EDA, basic visualization

Primary LanguageROtherNOASSERTION

Intro to R; Revised

John Little (@libjohn) & Joel Herndon (@herndonj) 2018-03-20

README

  • template code - <foo -- foo -- foo>
  • rrev repo - <foo -- foo -- foo>

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

  • data are in the data directory of this repository

  • our guide can be found at our Rfun site.

Outline

  1. New R Notebook

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

  3. Data Structure & Data Types (brief)

  4. 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
  5. Now You Try It. Hands on exercises.

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

    1. library(skimr)
  7. Before we go on... final thoughts

  8. Visualize with ggvis (syntactically simpler than ggplot2, but...)

    1. https://rfun.library.duke.edu/intro2r/visualization.html
  9. 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

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

License

Shareable via Creative Commons: CC-BY-NC