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


[Up] [Top]

Documentation for package ‘tidyr’ version 0.5.1

Help Pages

complete Complete a data frame with missing combinations of data.
crossing Expand data frame to include all combinations of values
expand Expand data frame to include all combinations of values
extract Extract one column into multiple columns.
extract_numeric Extract numeric component of variable.
fill Fill in missing values.
full_seq Create the full sequence of values in a vector.
gather Gather columns into key-value pairs.
nest Nest repeated values in a list-variable.
nesting Expand data frame to include all combinations of values
population Population data
replace_na Replace missing values
separate Separate one column into multiple columns.
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.
table1 tabular layouts
table2 tabular layouts
table3 tabular layouts
table4 tabular layouts
table5 tabular layouts
table6 tabular layouts
unite Unite multiple columns into one.
unnest Unnest a list column.
who World Health Organization TB data