vec2choice {REDCapCAST}R Documentation

Named vector to REDCap choices ('wrapping compact_vec()')

Description

Named vector to REDCap choices ('wrapping compact_vec()')

Usage

vec2choice(data)

Arguments

data

named vector

Value

character string

Examples

sample(seq_len(4), 20, TRUE) |>
  as_factor() |>
  named_levels() |>
  sort() |>
  vec2choice()

[Package REDCapCAST version 25.3.2 Index]