rc_read_csv | R Documentation |
Clean raw .csv data exported from a REDCap database, and export a list of data.frames
rc_read_csv(
folder,
yesno = "logical",
longitudinal = NULL,
tidy_formats = TRUE
)
folder |
The folder containing the files downloaded from the REDCap database. The four files required include the Data Dictionary, Events (under the 'Define my events' tab), Instrument Mappings (under the 'Designate Instruments for My Events' tab), and the raw Record data (under the 'My Reports & Exports' tab). All files should be saved as .csv. |
yesno |
Determine how to return REDCap 'Yes - No' fields; options include 'factor' (default), 'numeric', or 'logical'. |
longitudinal |
Is the study longitudinal or not. If longitudinal, then event and instrument mapping files should be provided as well. |
tidy_format |
Tidy variable formats or not? |
A named list containing four data frames: dd = metadata, evnt = Events, inst = Instrument mappings, rcrd = Records.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.