Intermediate-level programming with R
This lesson is for learners that are comfortable programming in R and want to learn some of R’s powerful tools for analyzing and visualizing data, literate programming, and debugging code.
This lesson starts with a quick review of the basics of the Unix shell and programming with R.
You’ll need to install the following packages: rmarkdown, dplyr, ggplot2, and testit.
- Setting up a project
- Inspecting a file
- Using RStudio
- Importing and inspecting data
- R conditional statements
- R loops
- Writing in Markdown
- Writing in R Markdown
- Using knitr chunk options
- Subsetting data with dplyr
- Using pipes with dplyr
- Starting with ggplot2 - Map data to plot aesthetics
- Control data mapping with scales
- Creating subplots with facets
- Creating different plots with geoms
- Debugging with debug
- Debugging with browser
- Defensive programming with stopifnot