Learn R Programming

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

tidyr (version 0.4.1)

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,167,081

Version

0.4.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

February 5th, 2016

Functions in tidyr (0.4.1)

nest

Nest repeated values in a list-variable.
unite

Unite multiple columns into one.
extract_numeric

Extract numeric component of variable.
spread_

Standard-evaluation version of spread.
gather_

Gather (standard-evaluation).
complete

Complete a data frame with missing combinations of data.
unnest

Unnest a list column.
gather

Gather columns into key-value pairs.
separate_

Standard-evaluation version of separate.
fill

Fill in missing values.
extract_

Standard-evaluation version of extract.
expand_

Expand (standard evaluation).
replace_na

Replace missing values
full_seq

Create the full sequence of values in a vector.
spread

Spread a key-value pair across multiple columns.
separate

Separate one column into multiple columns.
complete_

Standard-evaluation version of complete.
nest_

Standard-evaluation version of nest.
expand

Expand data frame to include all combinations of values
extract

Extract one column into multiple columns.
fill_

Standard-evaluation version of fill.
unnest_

Standard-evaluation version of unnest.
%>%

Pipe operator
unite_

Standard-evaluation version of unite