This function generates a nested dataset containing only the variables associated with each form, using the provided data, dictionary, and event-form mapping. You can choose to return data for a specific form.
split_form(data, dic, event_form = NULL, which = NULL, wide = FALSE)Data frame containing data from REDCap.
Data frame containing the dictionary read from REDCap.
Data frame containing the correspondence of each event with each form.
Character string specifying a form if only data for that form is desired.
Logical indicating if the dataset should be returned in a wide format (TRUE) or long format (FALSE).