process_bs_data: Process data from a BehaviorSpace '.csv' file.

View source: R/abs_load_data.R

process_bs_dataR Documentation

Process data from a BehaviorSpace .csv file.

Description

process_bs_data() takes a data frame read from a .csv file with BehaviorSpace output and organizes it into an R representation of a BehaviorSpace experiment.

Usage

process_bs_data(d, quiet = TRUE)

Arguments

d

A data frame read from a BehaviorSpace .csv file.

quiet

Logical value indicating whether to run quietly or report progress messages.

Details

This function is generally not run by the user, but is called internally by load_bs_file(), load_bs_table(), or load_bs_spreadsheet().

Value

A named list with elements:

  • data: a data frame containing the experiment data.

  • 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 mapping columns in data to variable names. By default, this just maps column names to themselves.

  • success: A logical variable indicating success or failure.

  • cause: A character variable indicating the cause of failure.

See Also

load_bs_file(), load_bs_table(), and load_bs_spreadsheet().


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