long2wide | R Documentation |
Convert data from long to wide format
long2wide(
data,
within = c(),
between = c(),
dv = "y",
id = "id",
sep = faux_options("sep")
)
data |
the tbl in long format |
within |
the names of the within column(s) |
between |
the names of between column(s) (optional) |
dv |
the name of the DV (value) column |
id |
the names of the column(s) for grouping observations |
sep |
separator for factor levels |
a tbl in wide format
df_long <- sim_design(2, 2, long = TRUE)
long2wide(df_long, "A", "B")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.