# tidyverse/tidyr

Tidy Messy Data

Repository: https://github.com/tidyverse/tidyr
Canonical: https://ross.abutalabs.com/products/tidyr
Homepage: https://tidyr.tidyverse.org/
Language: R
License: NOASSERTION
License Family: other
Topics: r, tidy-data
Last push: 2026-06-02T17:43:26+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 85, release rhythm 33, longevity 100
- inputs: {"age_days": 4467, "days_push": 92, "days_rel": 236, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1438, forks 418 (observed 2026-08-28T04:04:43.911489+00:00)

## What it is
tidyr is an R package from the tidyverse that provides tools for reshaping messy data into tidy form, including pivoting between long and wide formats, rectangling nested lists, and handling missing values. It is a core data-wrangling dependency widely used in R data analysis workflows.

## Use cases
- reshape a wide dataset into long format for plotting
- convert long data to wide with pivot_wider
- flatten nested JSON-like lists into tidy tibbles
- fill in missing values in a time series
- split a single character column into multiple columns
- make implicit missing values explicit in grouped data

## When to choose
- you work in R and need to reshape or clean data frames
- you use the tidyverse and want consistent tidy-data tooling
- you need to unnest or rectangle deeply nested list data

## When to avoid
- you work outside R
- you need high-performance reshaping of very large datasets better served by data.table
- you only need SQL-style joins or aggregation rather than reshaping

## Facets
- artifact type: library
- maturity: stable
- function: etl, data-science
- domain: data-science
- platform: -
- tags: tidy-data, data-wrangling, tidyverse, pivoting, data-cleaning, data-engineering, r

## Member repositories
- tidyverse/tidyr (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.911489+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:42.075648+00:00, confidence not recorded.
  - readme: https://github.com/tidyverse/tidyr (fetched 2026-08-28T04:04:43.911489+00:00, sha 43d5af1076a8)
  - homepage: https://tidyr.tidyverse.org/ (fetched 2026-08-29T11:47:21.630825+00:00, sha e1470e9ed1f8)
  - site_page: https://tidyr.tidyverse.org/news/index.html (fetched 2026-08-29T11:47:21.640107+00:00, sha 5809f573c1b6)
  - site_page: https://tidyr.tidyverse.org/authors.html (fetched 2026-08-29T11:47:21.643343+00:00, sha ed1abc61cbe5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
