reformat | R Documentation |
Assuming here that we've already checked that the necessary columns are present and named correctly. This reorders them and drops the unnecessary ones. It also does the grouping if desired for interact files.
reformat(data, program, stat = "mean", group = "none", groupvals = NA)
data |
dataframe to reformat (already verified that column names and types are correct) |
program |
bayesact or interact. Mean datasets look the same. |
stat |
summary statistic desired (mean, sd, or cov; interact must be mean) |
group |
name of grouping column (interact/mean only) |
groupvals |
vector length 2; unique values in grouping column |
reformatted data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.