Description Usage Arguments Value Examples
A helper function converting a behaviorstream dataframe into a list split by two grouping factors (e.g., Video ID AND Target ID). The resulting dataset is to be used by the recounter function
1 2 3 4 5 6 7 8 | # Filtering out empty dataframes
group_splitter_2(data, behaviorstream, "behavior", "consequence",
group1 = "group1", group2 = "group2", actor = "actor",
filt = TRUE)
# Leave all data frames
group_splitter_2(data, behaviorstream, "behavior", "consequence",
group1 = "group1", group2 = "group2", actor = "actor")
|
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 |
group1 |
A column representing the first variable used to group observation |
group2 |
A column representing the second variable used to group observations |
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 |
filt |
An optional argument used to filter empty dataframes |
Returns a list of dataframes grouped by GROUP1 and GROUP2
1 2 3 4 5 6 7 | # Filtering to non-empty dataframes for piping to group_split_recounter
# group_splitter2(two_person_picture,behaviorstream = "BEH", behavior = "o", consequence = "A", # group1 = "VIDELT", group2 = "TAR", filt = TRUE)
# Not filtering
# group_splitter2(two_person_picture,behaviorstream = "BEH", behavior = "o", consequence = "A",
# group1 = "VIDELT", group2 = "TAR")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.