R Tutorials
“What’s the best way to start learning R?” I hear this all the time — I asked the same question when I was first shown R in graduate school. There’s a real treasure trove of material out there: R for Data Science, The Pirate’s Guide to R, and the illustrated guides Allison Horst makes about functions and the tidyverse. Here’s what helped me.
Basic Tutorials
Learn how to install and use R, create data objects, and perform basic math.
Work with functions like mean(), median(), and range() to summarize data.
Use stringr and regex to extract and format text effectively.
Visualize data using the powerful and flexible ggplot2 package.
In-Depth Tutorials
Working primarily within the tidyverse ecosystem to create cleaner, more reproducible, and visually engaging analyses.
Generate and analyze text-based datasets using stringr::words and stringr::sentences, then visualize with dplyr and ggplot2.
Discover naming trends with the babynames dataset, combining dplyr and stringr for pattern exploration and layered ggplot2 styling.
Scrape data with rvest::read_html(), structure it, and visualize episode ratings as a heatmap with geom_tile().
Pull every function in an R package with ls(package:pkg) and render its namespace as an expandable hierarchical tree.