a new helper function has been introduced to help matching form names when special characters are in use.

This commit is contained in:
AG Damsbo 2023-04-14 11:46:09 +02:00
commit 563c864091
3 changed files with 25 additions and 7 deletions

View file

@ -88,13 +88,17 @@ REDCap_split <- function(records,
# Process user input
records <- process_user_input(records)
metadata <-
as.data.frame(process_user_input(metadata)) # See issue #12
as.data.frame(process_user_input(metadata))
# Process repeat instrument names to match the redcap naming
records$redcap_repeat_instrument <- clean_redcap_name(records$redcap_repeat_instrument)
# Get the variable names in the dataset
vars_in_data <- names(records)
# Match arg for forms
forms <- match.arg(forms)
forms <- match.arg(forms, c("repeating", "all"))
# Check to see if there were any repeating instruments
if (forms == "repeating" &&