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

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

Author
Hadley Wickham [aut, cre], RStudio [cph]
Date of publication
2016-08-12 10:20:52
Maintainer
Hadley Wickham <hadley@rstudio.com>
License
MIT + file LICENSE
Version
0.6.0
URLs

View on CRAN

Man pages

complete
Complete a data frame with missing combinations of data.
complete_
Standard-evaluation version of 'complete'.
drop_na
Drop rows containing missing values
drop_na_
Standard-evaluation version of 'drop_na'.
expand
Expand data frame to include all combinations of values
expand_
Expand (standard evaluation).
extract
Extract one column into multiple columns.
extract_
Standard-evaluation version of 'extract'.
extract_numeric
Extract numeric component of variable.
fill
Fill in missing values.
fill_
Standard-evaluation version of 'fill'.
full_seq
Create the full sequence of values in a vector.
gather
Gather columns into key-value pairs.
gather_
Gather (standard-evaluation).
nest
Nest repeated values in a list-variable.
nest_
Standard-evaluation version of 'nest'.
pipe
Pipe operator
replace_na
Replace missing values
separate
Separate one column into multiple columns.
separate_
Standard-evaluation version of 'separate'.
separate_rows
Separate a collapsed column into multiple rows.
separate_rows_
Standard-evaluation version of 'separate_rows'.
smiths
Some data about the Smith family.
spread
Spread a key-value pair across multiple columns.
spread_
Standard-evaluation version of 'spread'.
table1
Example tabular representations
unite
Unite multiple columns into one.
unite_
Standard-evaluation version of 'unite'
unnest
Unnest a list column.
unnest_
Standard-evaluation version of 'unnest'.
who
World Health Organization TB data

Files in this package

tidyr
tidyr/inst
tidyr/inst/doc
tidyr/inst/doc/tidy-data.Rmd
tidyr/inst/doc/tidy-data.html
tidyr/inst/doc/tidy-data.R
tidyr/tests
tidyr/tests/testthat.R
tidyr/tests/testthat
tidyr/tests/testthat/test-unite.R
tidyr/tests/testthat/test-spread.R
tidyr/tests/testthat/test-unnest.R
tidyr/tests/testthat/test-fill.R
tidyr/tests/testthat/test-id.R
tidyr/tests/testthat/test-replace_na.R
tidyr/tests/testthat/test-drop_na.R
tidyr/tests/testthat/test-full_seq.R
tidyr/tests/testthat/test-complete.R
tidyr/tests/testthat/test-nest.R
tidyr/tests/testthat/test-separate.R
tidyr/tests/testthat/test-extract.R
tidyr/tests/testthat/test-expand.R
tidyr/tests/testthat/test-gather.R
tidyr/src
tidyr/src/simplifyPieces.cpp
tidyr/src/melt.cpp
tidyr/src/fill.cpp
tidyr/src/RcppExports.cpp
tidyr/NAMESPACE
tidyr/demo
tidyr/demo/so-9684671.R
tidyr/demo/so-17481212.R
tidyr/demo/dadmom.R
tidyr/demo/so-15668870.R
tidyr/demo/00Index
tidyr/demo/so-16032858.R
tidyr/NEWS.md
tidyr/data
tidyr/data/smiths.rda
tidyr/data/population.rdata
tidyr/data/table4a.rdata
tidyr/data/table2.rdata
tidyr/data/table1.rdata
tidyr/data/who.rdata
tidyr/data/table5.rdata
tidyr/data/table4b.rdata
tidyr/data/table3.rdata
tidyr/R
tidyr/R/utils.R
tidyr/R/seq.R
tidyr/R/fill.R
tidyr/R/unnest.R
tidyr/R/replace_na.R
tidyr/R/unite.R
tidyr/R/separate-rows.R
tidyr/R/drop_na.r
tidyr/R/nest.R
tidyr/R/data.R
tidyr/R/RcppExports.R
tidyr/R/id.R
tidyr/R/spread.R
tidyr/R/extract.R
tidyr/R/expand.R
tidyr/R/complete.R
tidyr/R/gather.R
tidyr/R/separate.R
tidyr/vignettes
tidyr/vignettes/preg2.csv
tidyr/vignettes/billboard.csv
tidyr/vignettes/tb.csv
tidyr/vignettes/weather.csv
tidyr/vignettes/preg.csv
tidyr/vignettes/tidy-data.Rmd
tidyr/vignettes/pew.csv
tidyr/README.md
tidyr/MD5
tidyr/build
tidyr/build/vignette.rds
tidyr/DESCRIPTION
tidyr/man
tidyr/man/who.Rd
tidyr/man/pipe.Rd
tidyr/man/smiths.Rd
tidyr/man/table1.Rd
tidyr/man/complete.Rd
tidyr/man/unnest_.Rd
tidyr/man/extract_.Rd
tidyr/man/separate_.Rd
tidyr/man/nest.Rd
tidyr/man/complete_.Rd
tidyr/man/nest_.Rd
tidyr/man/drop_na_.Rd
tidyr/man/replace_na.Rd
tidyr/man/extract_numeric.Rd
tidyr/man/separate.Rd
tidyr/man/gather.Rd
tidyr/man/gather_.Rd
tidyr/man/drop_na.Rd
tidyr/man/unnest.Rd
tidyr/man/separate_rows.Rd
tidyr/man/full_seq.Rd
tidyr/man/separate_rows_.Rd
tidyr/man/fill_.Rd
tidyr/man/spread_.Rd
tidyr/man/expand_.Rd
tidyr/man/fill.Rd
tidyr/man/unite.Rd
tidyr/man/expand.Rd
tidyr/man/unite_.Rd
tidyr/man/extract.Rd
tidyr/man/spread.Rd
tidyr/LICENSE