View source: R/visit_sequence_api.R
| add_sequence_numeric | R Documentation |
Add to visit sequence for numeric variables
add_sequence_numeric(
roadmap,
...,
method = c("correlation", "proportion", "weighted total", "absolute weighted total",
"weighted absolute total"),
cor_var = NULL,
na.rm = FALSE,
cor_use = "everything"
)
roadmap |
A |
... |
|
method |
A quoted name for the method used to sort the visit_sequence |
cor_var |
A numeric variable for the correlation method |
na.rm |
Boolean that if TRUE, removes |
cor_use |
A string correlation data method passed to |
An updated visit_sequence
roadmap(
conf_data = acs_conf_nw,
start_data = acs_start_nw
) |>
add_sequence_numeric(
dplyr::where(is.numeric),
method = "correlation",
cor_var = "age",
na.rm = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.