Learn R Programming

⚠️There's a newer version (1.3.1) of this package.Take me there.

tidyr (version 0.4.0)

Easily Tidy Data with `spread()` and `gather()` Functions

Description

An evolution of 'reshape2'. It's designed specifically for data tidying (not general reshaping or aggregating) and works well with 'dplyr' data pipelines.

Copy Link

Version

Install

install.packages('tidyr')

Monthly Downloads

907,809

Version

0.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

January 18th, 2016

Functions in tidyr (0.4.0)

unnest_

Standard-evaluation version of unnest.
separate

Separate one column into multiple columns.
extract

Extract one column into multiple columns.
nest_

Standard-evaluation version of nest.
extract_numeric

Extract numeric component of variable.
fill

Fill in missing values.
complete_

Standard-evaluation version of complete.
unnest

Unnest a list column.
replace_na

Replace missing values
%>%

Pipe operator
unite_

Standard-evaluation version of unite
expand

Expand data frame to include all combinations of values
gather

Gather columns into key-value pairs.
expand_

Expand (standard evaluation).
spread_

Standard-evaluation version of spread.
nest

Nest repeated values in a list-variable.
gather_

Gather (standard-evaluation).
full_seq

Create the full sequence of values in a vector.
complete

Complete a data frame with missing combinations of data.
unite

Unite multiple columns into one.
extract_

Standard-evaluation version of extract.
spread

Spread a key-value pair across multiple columns.
fill_

Standard-evaluation version of fill.
separate_

Standard-evaluation version of separate.