documented preview functions and included gt

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-20 16:15:41 +01:00
commit a896bf4e76
No known key found for this signature in database
8 changed files with 113 additions and 47 deletions

View file

@ -197,6 +197,8 @@ ds2dd_detailed <- function(data,
record_id = seq_len(nrow(data)),
data
)
# set_attr(data$record_id,label="ID",attr="label")
message("A default id column has been added")
}
@ -337,12 +339,15 @@ ds2dd_detailed <- function(data,
)
)
list(
out <- list(
data = data |>
hms2character() |>
stats::setNames(dd$field_name),
meta = dd
)
class(out) <- c("REDCapCAST",class(out))
out
}