Software
tidyr

tidyr

Tidy Messy Data

R

tidyr is an R package for creating tidy data, where each variable is a column, each observation is a row, and each value is a cell. This standardized data structure is used throughout the tidyverse ecosystem and reduces time spent reformatting data during analysis.

The package provides five main categories of functions: pivoting between long and wide formats (pivot_longer(), pivot_wider()), rectangling nested lists like JSON into tibbles, nesting and unnesting grouped data frames, splitting and combining character columns, and handling missing values. It supersedes the older reshape and reshape2 packages with a focused design specifically for data tidying rather than general reshaping or aggregation.

Contributors

Resources using tidyr