View source: R/sequence-panel.R
| summarise_sequence_panel | R Documentation |
Summarise a sequence panel
summarise_sequence_panel(panel)
panel |
A result from |
A list with occasion-level sequence summaries and state prevalence.
panel_data <- data.frame(
participant_id = rep(c("p1", "p2"), each = 6L),
occasion = rep(rep(c(1, 2), each = 3L), times = 2L),
sequence_id = rep(c("a", "b", "c", "d"), each = 3L),
sequence_order = rep(1:3, times = 4L),
state = c("A", "B", "C", "A", "C", "C", "C", "B", "A", "C", "B", "B")
)
summarise_sequence_panel(prepare_sequence_panel(panel_data, "participant_id", "occasion"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.