group_splitter: group_splitter

Description Usage Arguments Value Note Author(s) Examples

View source: R/funs.R

Description

A helper function converting a behaviorstream dataframe into a list split by a grouping factor (e.g., Video ID or Target ID). The resulting dataset is to be used by the recounter function

Usage

1
2
split_df <- group_splitter(data,behaviorstream,"behavior","consequence",
group = "group", actor = "actor")

Arguments

data

A dataframe or tibble

behaviorstream

A column representing the observation stream. Contains actor behaviors and environmental (or partner) consequences

behavior

A character string indicating the target behavior to be reinforced

consequence

A character string indicating the environmental consequence acting as a reinforcer

group

A column representing the variable used to group observation

actor

An optional argument indicating the column containing the actor ID

missing_data

An optional argument specifying if missing observations have been removed

contingency

An optional argument indicating if reinforcers must be contingent or contiguous to target behaviors

Value

Returns a list of dataframes defined by grouping object

Note

Only data and group are used arguments. Version 2 will omit all other arguments (intended for the recounting function)

Author(s)

James DeLaney

Examples

1
group_splitter(two_person_picture,BEH, "x","A",group = "VIDELT", actor = "TAR")

delaneyj1786/REINFORCINATOR documentation built on Jan. 14, 2022, 3:47 a.m.