rc_read_api | R Documentation |
A wrapper for importing data Records, data dictionary, events, and instrument designation mappings from REDCap. Uses the redcapAPI package.
rc_read_api(
url,
token,
labels = FALSE,
cast = list(system = redcapAPI::castRaw, date_ = as.Date, yesno = function(x, ...) x ==
"1" | tolower(x) == "yes", checkbox = function(x, ...)
as.logical(redcapAPI::castRaw(x, ...)))
)
url |
URL for a REDCap database API. Check your institution's REDCap documentation for this address. |
token |
REDCap API token |
labels |
Passed to 'redcapAPI::exportRecordsTyped', determines if the variable labels are applied to the data frame. 'FALSE' by default. |
cast |
Passed to 'redcapAPI::exportRecordsTyped', determines how different types of fields are returned. By default, all checkbox and yesno fields are returned as logical. |
A named list containing four dataframes: 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.