PivotingPivoting changes the representation of a rectangular dataset, without changing the data inside of it. See |
|
---|---|
Pivot data from wide to long |
|
Pivot data from long to wide |
|
RectanglingRectangling turns deeply nested lists into tidy tibbles. See |
|
Rectangle a nested list into a tidy tibble |
|
NestingNesting uses alternative representation of grouped data where a group becomes a single row containing a nested data frame. See |
|
Nest and unnest |
|
Character vectorsMultiple variables are sometimes pasted together into a single column, and these tools help you separate back out into individual columns. |
|
Extract a character column into multiple columns using regular expression groups |
|
Separate a character column into multiple columns with a regular expression or numeric locations |
|
Separate a collapsed column into multiple rows |
|
Unite multiple columns into one by pasting strings together |
|
Missing valuesTools for converting between implicit (absent rows) and explicit ( |
|
Complete a data frame with missing combinations of data |
|
Drop rows containing missing values |
|
Expand data frame to include all possible combinations of values |
|
Create a tibble from all combinations of inputs |
|
Fill in missing values with previous or next value |
|
Create the full sequence of values in a vector |
|
Replace NAs with specified values |
|
Miscellanea |
|
Chop and unchop |
|
Pack and unpack |
|
"Uncount" a data frame |
|
Data |
|
Song rankings for Billboard top 100 in the year 2000 |
|
Completed construction in the US in 2018 |
|
Fish encounters |
|
Pew religion and income survey |
|
Some data about the Smith family |
|
Example tabular representations |
|
US rent and income data |
|
World Health Organization TB data |
|
Population data from the world bank |
|
SupersededFunctions that are still supported but no longer receive active development, as better solutions now exist. |
|
Spread a key-value pair across multiple columns |
|
Gather columns into key-value pairs |
|