count_events | R Documentation |
This function counts the number of occurrences of each unique event in a sequence. The result is a dataframe with two columns: ID and Frequency.
count_events(event_vector)
event_vector |
A numeric vector representing a sequence of events. |
A dataframe with two columns: ID and Frequency, showing the number of occurrences of each event.
speaker_no <- c(3, 2, 3, 1, 4, 2, 4, 1, 4, 3, 2, 3)
count_events(speaker_no)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.