| to_wide | R Documentation |
A user-friendly wrapper around stats::reshape to convert data from
long format back to wide format.
to_wide(data, within = "Condition", value = "Value", id = NULL)
data |
A data frame in long format. |
within |
The name of the column containing within-subjects factor levels (e.g., "Condition"). |
value |
The name of the column containing measurement values (e.g., "Value"). Can be a character vector for multiple measurement columns. |
id |
The identifier columns (e.g., "Subject", "Group"). If NULL,
inferred as all columns except |
A data frame in wide format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.