Deploying to gh-pages from @ agdamsbo/REDCapCAST@db75c3313e 🚀

This commit is contained in:
agdamsbo 2025-11-14 14:10:52 +00:00
commit 0b30252598
171 changed files with 7009 additions and 602 deletions

30
reference/vec2choice.md Normal file
View file

@ -0,0 +1,30 @@
# Named vector to REDCap choices (\`wrapping compact_vec()\`)
Named vector to REDCap choices (\`wrapping compact_vec()\`)
## Usage
``` r
vec2choice(data)
```
## Arguments
- data:
named vector
## Value
character string
## Examples
``` r
sample(seq_len(4), 20, TRUE) |>
as_factor() |>
named_levels() |>
sort() |>
vec2choice()
#> [1] "1, 1 | 2, 2 | 3, 3 | 4, 4"
```