mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-21 14:09:08 +02:00
Cleaning up code for #12
test now compares read_csv and read.csv output directly.
This commit is contained in:
parent
4a06d00a0c
commit
a83221432f
4 changed files with 43 additions and 30 deletions
|
|
@ -87,11 +87,7 @@ REDCap_split <- function(records,
|
|||
|
||||
# Process user input
|
||||
records <- process_user_input(records)
|
||||
metadata <- process_user_input(metadata)
|
||||
|
||||
# Remove "tbl_df" class from metadata, if present, due to difference in
|
||||
# `[.tbl_df` behavior as compared to `[.data.frame` behavior (see issue #12)
|
||||
if(inherits(metadata, "tbl_df")) class(metadata) <- "data.frame"
|
||||
metadata <- as.data.frame(process_user_input(metadata)) # See issue #12
|
||||
|
||||
# Get the variable names in the dataset
|
||||
vars_in_data <- names(records)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue