create_is_aba {abasequence}R 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)


[Package abasequence version 0.1.0 Index]