generate_codes {abasequence} | R Documentation |
Generate Codes for Sequences Based on Certain Rules
Description
This function generates one of four possible codes for sequences: AAA, ABA, ABB, ABC.
Usage
generate_codes(sequences)
Arguments
sequences |
A dataframe containing the input sequences. |
Value
A dataframe of sequences with their corresponding codes.
Examples
speaker_no <- c(3, 2, 3, 1, 4, 2, 4, 1, 4, 3, 2, 3)
sequences_df <- generate_sequences(speaker_no, 3)
generate_codes(sequences_df)
[Package abasequence version 0.1.0 Index]