pkgs <- c(
"tidyverse", "here", "readxl", "openxlsx", "haven",
"data.table", "vroom", "janitor", "naniar", "broom"
)
install.packages(setdiff(pkgs, rownames(installed.packages())))New to R? Start here. This section covers the fundamentals: installing and navigating R and RStudio, working with variables and functions, and using the tidyverse to import, wrangle, and visualize data. Along the way you will meet correlation and regression, your first ggplot, hypothesis tests and p-values, and how to handle missing values and outliers. No prior R experience is assumed.
NoteRequired R packages
The chapters in this section use the R packages below. Run this once to install any that are missing: