mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
major update with new functions and renv is out! see NEWS section
This commit is contained in:
parent
b35142f0cc
commit
4a56f4ec45
16 changed files with 158 additions and 93 deletions
|
|
@ -343,10 +343,10 @@ ds2dd_detailed <- function(data,
|
|||
lapply(function(x) {
|
||||
if (is.factor(x)) {
|
||||
## Re-factors to avoid confusion with missing levels
|
||||
## Assumes alle relevant levels are represented in the data
|
||||
## Assumes all relevant levels are represented in the data
|
||||
re_fac <- factor(x)
|
||||
paste(
|
||||
paste(unique(as.numeric(re_fac)),
|
||||
paste(seq_along(levels(re_fac)),
|
||||
levels(re_fac),
|
||||
sep = ", "
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue