mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-21 14:09:08 +02:00
minor adjustments and bug fixing
This commit is contained in:
parent
f094394933
commit
40d95e41c3
14 changed files with 256 additions and 71 deletions
24
man/vec2choice.Rd
Normal file
24
man/vec2choice.Rd
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/ds2dd_detailed.R
|
||||
\name{vec2choice}
|
||||
\alias{vec2choice}
|
||||
\title{Named vector to REDCap choices (`wrapping compact_vec()`)}
|
||||
\usage{
|
||||
vec2choice(data)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{named vector}
|
||||
}
|
||||
\value{
|
||||
character string
|
||||
}
|
||||
\description{
|
||||
Named vector to REDCap choices (`wrapping compact_vec()`)
|
||||
}
|
||||
\examples{
|
||||
sample(seq_len(4), 20, TRUE) |>
|
||||
as_factor() |>
|
||||
named_levels() |>
|
||||
sort() |>
|
||||
vec2choice()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue