| towide | R Documentation |
Reshape rows into columns
towide(data, names, values, idcols = NULL, fun = NULL, fill = NA)
data |
A data.frame. |
names |
Column whose values become the new column names. |
values |
Column whose values fill the new columns. |
idcols |
Columns to keep as row identifiers. Defaults to every column
other than |
fun |
Function that reduces the values falling in one cell. When
|
fill |
Value used for cells with no matching row. |
A wide-format basetable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.