powered by
This function generates sequences of a given length from a numeric vector.
generate_sequences(event_vector, sequence_length)
A dataframe containing the sequences and their ID.
A numeric vector representing a sequence of events.
An integer representing the length of sequences to generate. Currenlty only supported with sequence lengths of 3
speaker_no <- c(3, 2, 3, 1, 4, 2, 4, 1, 4, 3, 2, 3) generate_sequences(speaker_no, 3)
Run the code above in your browser using DataLab