spread_

0th

Percentile

Standard-evaluation version of spread.

This is a S3 generic.

Keywords
internal
Usage
spread_(data, key_col, value_col, fill = NA, convert = FALSE, drop = TRUE)
Arguments
data
A data frame.
key_col, value_col
Strings giving names of key and value cols.
fill
If set, missing values will be replaced with this value. Note that there are two types of missingness in the input: explicit missing values (i.e. NA), and implicit missings, rows that simply aren't present. Both types of missing value will be
convert
If TRUE, type.convert with asis = TRUE will be run on each of the new columns. This is useful if the value column was a mix of variables that was coerced to a string. If the c
drop
If FALSE, will keep factor levels that don't appear in the data, filling in missing combinations with fill.
Aliases
  • spread_
Documentation reproduced from package tidyr, version 0.4.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.