tidyr1.3.1 package

Tidy Messy Data

check_pivot_spec

Check assumptions about a pivot spec

chop

Chop and unchop

complete

Complete a data frame with missing combinations of data

deprecated-se

Deprecated SE versions of main verbs

drop_na

Drop rows containing missing values

expand

Expand data frame to include all possible combinations of values

expand_grid

Create a tibble from all combinations of inputs

extract

Extract a character column into multiple columns using regular express...

extract_numeric

Extract numeric component of variable.

fill

Fill in missing values with previous or next value

full_seq

Create the full sequence of values in a vector

gather

Gather columns into key-value pairs

hoist

Hoist values out of list-columns

nest

Nest rows into a list-column of data frames

nest_legacy

Legacy versions of nest() and unnest()

pack

Pack and unpack

pipe

Pipe operator

pivot_longer

Pivot data from wide to long

pivot_longer_spec

Pivot data from wide to long using a spec

pivot_wider

Pivot data from long to wide

pivot_wider_spec

Pivot data from long to wide using a spec

reexports

Objects exported from other packages

replace_na

Replace NAs with specified values

separate

Separate a character column into multiple columns with a regular expre...

separate_longer_delim

Split a string into rows

separate_rows

Separate a collapsed column into multiple rows

separate_wider_delim

Split a string into columns

spread

Spread a key-value pair across multiple columns

tidyr-package

tidyr: Tidy Messy Data

tidyr_data_masking

Argument type: data-masking

tidyr_legacy

Legacy name repair

tidyr_tidy_select

Argument type: tidy-select

uncount

"Uncount" a data frame

unite

Unite multiple columns into one by pasting strings together

unnest

Unnest a list-column of data frames into rows and columns

unnest_auto

Automatically call unnest_wider() or unnest_longer()

unnest_longer

Unnest a list-column into rows

unnest_wider

Unnest a list-column into columns

Tools to help to create tidy data, where each column is a variable, each row is an observation, and each cell contains a single value. 'tidyr' contains tools for changing the shape (pivoting) and hierarchy (nesting and 'unnesting') of a dataset, turning deeply nested lists into rectangular data frames ('rectangling'), and extracting values out of string columns. It also includes tools for working with missing values (both implicit and explicit).

  • Maintainer: Hadley Wickham
  • License: MIT + file LICENSE
  • Last published: 2024-01-24