Learn R Programming

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

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

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

September 8th, 2015

Functions in tidyr (0.3.0)

complete_

Standard-evaluation version of complete.
unite

Unite multiple columns into one.
extract_

Standard-evaluation version of extract.
nest

Nest repeated values in a list-varible.
nest_

Standard-evaluation version of nest.
unnest

Unnest a list column.
expand

Expand data frame to include all combinations of values
separate

Separate one column into multiple columns.
spread

Spread a key-value pair across multiple columns.
complete

Complete a data frame with missing combinations of data.
extract_numeric

Extract numeric component of variable.
separate_

Standard-evaluation version of separate.
%>%

Pipe operator
unnest_

Standard-evaluation version of unnest.
unite_

Standard-evaluation version of unite
seq_range

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

Gather (standard-evaluation).
replace_na

Replace missing values
gather

Gather columns into key-value pairs.
fill

Fill in missing values.
fill_

Standard-evaluation version of fill.
expand_

Expand (standard evaluation).
extract

Extract one column into multiple columns.
spread_

Standard-evaluation version of spread.