This is a helper function to prepare fully crossed conditions primarily
for use with the
conditions argument of
Automatically creates labels for each row in the
make_conditions(x, vars, ...)
An R object from which to extract the variables that should be part of the conditions.
Names of the variables that should be part of the conditions.
Arguments passed to
For factor like variables, all levels are used as conditions.
For numeric variables,
mean + (-1:1) * SD are used as conditions.
data.frame where each row indicates a condition.
df <- data.frame(x = c("a", "b"), y = rnorm(10)) make_conditions(df, vars = c("x", "y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.