mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
improved import ui and redcap import with status messages
This commit is contained in:
parent
3e49868ff4
commit
2800177fc5
13 changed files with 427 additions and 165 deletions
|
|
@ -645,10 +645,10 @@ convert_to <- function(data,
|
|||
setNames(list(expr(as.character(!!sym(variable)))), variable)
|
||||
)
|
||||
} else if (identical(new_class, "factor")) {
|
||||
data[[variable]] <- as.factor(x = data[[variable]])
|
||||
data[[variable]] <- REDCapCAST::as_factor(x = data[[variable]])
|
||||
attr(data, "code_03_convert") <- c(
|
||||
attr(data, "code_03_convert"),
|
||||
setNames(list(expr(as.factor(!!sym(variable)))), variable)
|
||||
setNames(list(expr(REDCapCAST::as_factor(!!sym(variable)))), variable)
|
||||
)
|
||||
} else if (identical(new_class, "numeric")) {
|
||||
data[[variable]] <- as.numeric(data[[variable]], ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue