View source: R/ds2dd_detailed.R
vec2choice | R Documentation |
Named vector to REDCap choices ('wrapping compact_vec()')
vec2choice(data)
data |
named vector |
character string
sample(seq_len(4), 20, TRUE) |>
as_factor() |>
named_levels() |>
sort() |>
vec2choice()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.