Data frames in base R
8 steps in 3 sets of R.
Data frames before the tidyverse gets involved. Building them, inspecting them, reshaping and combining them, all in base R.
Eight steps, and worth doing even if you intend to live in dplyr. Plenty of code you will inherit was written before 2014, and the base idioms are what it is made of.
Building & inspecting
- Data framesThe rectangular table at the center of R analysis.
- Subsetting rows and columnsFiltering and selecting with base R brackets.
- Summary statisticsMean, median, standard deviation and quantiles, which is most of a first look at data.
Reshaping & combining
- Merging and bindingCombining tables by key or by stacking.
- Reshaping wide and longBase R's reshape between wide and long layouts.
- Grouped summaries in base RSummarizing by group without any packages.
- Missing dataDetecting, removing, and imputing NA values.
Encore
- survey_report.RClean a survey data frame and report grouped results in base R.