Learn R Programming

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

tidyr (version 0.3.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,199,672

Version

0.3.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

September 10th, 2015

Functions in tidyr (0.3.1)

fill_

Standard-evaluation version of fill.
extract_numeric

Extract numeric component of variable.
expand

Expand data frame to include all combinations of values
gather

Gather columns into key-value pairs.
separate_

Standard-evaluation version of separate.
spread

Spread a key-value pair across multiple columns.
extract

Extract one column into multiple columns.
unnest_

Standard-evaluation version of unnest.
seq_range

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

Standard-evaluation version of complete.
nest

Nest repeated values in a list-varible.
complete

Complete a data frame with missing combinations of data.
gather_

Gather (standard-evaluation).
%>%

Pipe operator
extract_

Standard-evaluation version of extract.
unite

Unite multiple columns into one.
unnest

Unnest a list column.
nest_

Standard-evaluation version of nest.
fill

Fill in missing values.
replace_na

Replace missing values
expand_

Expand (standard evaluation).
unite_

Standard-evaluation version of unite
spread_

Standard-evaluation version of spread.
separate

Separate one column into multiple columns.