| towide | R Documentation |
Reshape rows into columns
towide(data, names, values, idcols = NULL, fun = NULL, fill = NA)
data |
A data.frame. |
names |
Name for the resulting key/value column, depending on the function. |
values |
Vector or list of replacement values. |
idcols |
Columns to keep as row identifiers. |
fun |
Function applied to each element, column, or group. |
fill |
Value used for positions where no window/result is available. |
A wide-format basetable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.