This function generates a nested dataset filtered by each event, containing only the variables associated with each event. It uses the provided data, dictionary, and event-form mapping. You can choose to return data for a specific event.
split_event(data, dic, event_form, which = NULL)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 an event if only data for that event is desired.