generate_sequences {abasequence} | R Documentation |
Generate Sequences of a Given Length from a Numeric Vector
Description
This function generates sequences of a given length from a numeric vector.
Usage
generate_sequences(event_vector, sequence_length)
Arguments
event_vector |
A numeric vector representing a sequence of events. |
sequence_length |
An integer representing the length of sequences to generate. Currenlty only supported with sequence lengths of 3 |
Value
A dataframe containing the sequences and their ID.
Examples
speaker_no <- c(3, 2, 3, 1, 4, 2, 4, 1, 4, 3, 2, 3)
generate_sequences(speaker_no, 3)
[Package abasequence version 0.1.0 Index]