tidyr is an R package for reshaping and tidying tabular data. It works alongside dplyr within the tidyverse to transform datasets, subset rows or columns, summarize groups, create variables, and join datasets. section 1.3
Use tidyr when preparing data for exploratory analysis or later statistical work:
- Reshape datasets into forms suitable for analysis. section 1.3
- Combine tidyr and dplyr functions for broader data-wrangling workflows. section 6.1
- Inspect cleaned data with summaries, correlation plots, histograms, and other visualizations before testing or modeling. section 1.3
library(tidyverse) library(sqldf) library(patchwork)
A typical setup loads tidyverse, which provides tidyr and dplyr alongside tools for querying and visualization. section 6.1
