- project
A list containing the REDCap data, dictionary, and event mapping (expected redcap_data() output). Overrides data, dic, and event_form.
- data
A data.frame or tibble with the REDCap dataset.
- dic
A data.frame with the REDCap dictionary.
- event_form
Only applicable for longitudinal projects (presence of events). Event-to-form mapping for longitudinal projects.
- which
Optional. A single form or event to extract. If not provided, all forms or events are returned.
- by
Character. Criteria to split the dataset: "form" (default) or "event".
- wide
Logical. If TRUE (for form-based splits), repeated instances are returned in wide format. Defaults to FALSE.