Make a BehaviorSpace experiment object.

make_experiment(data = NULL, ind_vars = NULL, dep_vars = NULL, mapping = NULL)

Arguments

data

A data frame.

ind_vars

A character vector with the names of the independent variables.

dep_vars

A character vector with the names of the dependent variables.

mapping

A data frame with a mapping between column names in data and a name to use in the Shiny app and for plot axes.

Value

An experiment object. This is a named list with:

  • data: a data frame,

  • ind_vars: A character vector with the names of the independent variables.

  • dep_vars: A character vector with the names of the dependent variables

  • mapping: A data frame with a mapping between column names in data and names to use for plot axis labels, in the Shiny app, etc.