create_is_aba: Create a Dummy Variable Indicating Whether a Code Represents...

View source: R/ABA_script.R

create_is_abaR Documentation

Create a Dummy Variable Indicating Whether a Code Represents 'ABA' (1) or not (0).

Description

This function creates a dummy variable indicating whether a code represents 'ABA'.

Usage

create_is_aba(codes_df)

Arguments

codes_df

A dataframe of binary codes generated by the generate_codes function.

Value

A dataframe of codes with an additional column indicating whether the code represents 'ABA'.

Examples

speaker_no <- c(3, 2, 3, 1, 4, 2, 4, 1, 4, 3, 2, 3)
sequences_df <- generate_sequences(speaker_no, 3)
codes_df <- generate_codes(sequences_df)
create_is_aba(codes_df)


abasequence documentation built on July 26, 2023, 5:43 p.m.