spread_ | R Documentation |
spread that understands units
spread_(data, key, value, ..., .units_col = NULL, .units_key = NULL,
.col_precedence = TRUE)
data |
A data frame. |
key |
The bare (unquoted) name of a column whose values will be used as column headings |
value |
The bare (unquoted) name of a column whose values will populate the cells |
... |
parameters to pass to the underlying tidyr::spread function |
.units_col |
column associated with units in the value column |
.units_key |
a list of column names and units to attempt to set |
.col_precendence |
whether units found in the units_col take precedence over those found in the key |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.