mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2025-12-16 01:22:10 +01:00
feat: format logicals as numeric for upload
This commit is contained in:
parent
965aa310ca
commit
cac245cd9f
1 changed files with 1 additions and 1 deletions
|
|
@ -446,7 +446,7 @@ ds2dd_detailed <- function(data,
|
|||
hms2character() |>
|
||||
stats::setNames(dd$field_name) |>
|
||||
lapply(\(.x){
|
||||
if (identical("factor", class(.x))) {
|
||||
if (identical("factor", class(.x)) | identical("logical", class(.x))) {
|
||||
as.numeric(.x)
|
||||
} else {
|
||||
.x
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue