This function fetches a REDCap instrument and separates it into individual data frames for each survey/collection detected in the data based on column name prefixes. It identifies the appropriate identifier column and splits the data accordingly.
redcap.rune(
instrument_name,
raw_or_label = "raw",
redcap_event_name = NULL,
batch_size = 1000,
records = NULL,
fields = NULL,
exclude_pii = TRUE,
interview_date = NULL,
date_format = "ymd",
lower = TRUE
)
Creates multiple dataframes in the parent environment, one for each survey detected in the data. Each dataframe is named after its survey prefix.
Name of the REDCap instrument
Whether to return raw or labeled values
Optional event name filter
Number of records to retrieve per batch
Optional vector of specific record IDs
Optional vector of specific fields
Default TRUE remove all fields marked as identifiable
Optional; date filtering parameter
Default ymd define date format for interview_date
default TRUE convert prefixes to lower case