| generate_sequences | R Documentation |
This function generates sequences of a given length from a numeric vector.
generate_sequences(event_vector, sequence_length)
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 |
A dataframe containing the sequences and their ID.
speaker_no <- c(3, 2, 3, 1, 4, 2, 4, 1, 4, 3, 2, 3)
generate_sequences(speaker_no, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.