Chapter 4 R

Preamble: thought of as just for statistics…Why do you want to learn R?

R is a programming language with roots in statistics but also for powerful for data science and reproducible research.

4.2 Intro to R with RStudio/tidyverse

Many modern R users interact with R through RStudio. RStudio provides a software interface (called the IDE: Integrated Development Environment), concepts of tidy data, analytical packages (including tidyverse and tidymodels), reproducible reporting and publishing (RMarkdown, bookdown, blogdown), and interactive dashboards (Shiny), and a powerful user and developer community (#rstats).

  • R for Excel Users - Julia Lowndes & Allison Horst

    • This is for anyone, not just Excel users! Assumes no previous coding experience, and teaches R as a workflow with GitHub and RMarkdown, with a focus on collaboration & reproducibility.
  • R for Data Science - Hadley Wickham & Garrett Grolemund

    • THE go-to resource for learning R with the tidyverse.
    • learn with the R4DS community…11.1.1
  • R Education for Beginners - RStudio Education

4.3 Code style guide

  • Tidyverse style guide - Hadley Wickham
    • “Good coding style is like correct punctuation: you can manage without it, butitsuremakesthingseasiertoread.”
    • Describes style for the tidyverse and Google’s current R Style Guide

4.4 Statistics with R

4.5 RMarkdown

This What is RMarkdown 1-minute video describes how RMarkdown powerfully combines simple text formatting with executable R code (also called literate programming), fueling efficient, reproducible research. R Markdown is also powerful for publishing.

4.7 Machine Learning

4.8 Full Courses