Description Usage Arguments Examples
View source: R/wrap.generate.R
Searches the data frame for pairs of columns whose names are identical except for specific strings that you've embedded within them–such as "T1" versus "T2" or "Participant1" versus "Participant2–and then generates new columns by computing sums, differences, or means between pairs of corresponding columns.
1 | wrap.generate(df, string1, string2, operation)
|
df |
The data frame |
string1, string2 |
Strings embedded within the names of corresponding columns |
operation |
String to specify the operation: must be |
1 2 | ## Computing differences between T1 responses and T2 responses
wrap.generate(df = bdata, string1 = "T1", string2 = "T2", operation = "difference")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.