Learn R Programming

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

tidyr (version 0.2.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

1,199,672

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

December 5th, 2014

Functions in tidyr (0.2.0)

separate

Separate one column into multiple columns.
extract_

Standard-evaluation version of extract.
extract

Extract one column into multiple columns.
separate_

Standard-evaluation version of separate.
expand_

Expand (standard evaluation).
expand

Expand data frame to include all combinations of levels.
gather

Gather columns into key-value pairs.
unnest

Unnest a list column.
unnest_

Standard-evaluation version of unnest.
gather_

Gather (standard-evaluation).
unite_

Standard-evaluation version of unite
seq_range

Create an evenly spaced sequence of values from highest to lowest.
unite

Unite multiple columns into one.
spread_

Standard-evaluation version of spread.
spread

Spread a key-value pair across multiple columns.
extract_numeric

Extract numeric component of variable.