make_experiment: Make a BehaviorSpace experiment object.

View source: R/abs_util.R

make_experimentR Documentation

Make a BehaviorSpace experiment object.

Description

Make a BehaviorSpace experiment object.

Usage

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.


jonathan-g/analyzeBehaviorspace documentation built on July 23, 2022, 11:01 a.m.