Learn R Programming

redcapAPI (version 1.3)

exportMetaData: Export Meta Data from a REDCap Database

Description

Retrieves the meta data for a REDcap database, including field names, labels, types, formulas, etc. This file can be used to parse levels of factors, apply labels, and other data management tasks once the data are retrieved

Usage

exportMetaData(rcon, ...)

# S3 method for redcapDbConnection exportMetaData(rcon, ...)

# S3 method for redcapApiConnection exportMetaData(rcon, ...)

Arguments

rcon

A REDCap connection object as generated by redcapConnection.

...

Arguments to be passed to other methods.

Details

A record of this export is placed in the REDCap logging page, but the file that is exported is not stored in the database.

References

This functionality were originally developed by Jeffrey Horner in the redcap package. https://github.com/vubiostat/redcap

Please refer to your institution's API documentation.

Additional details on API parameters are found on the package wiki at https://github.com/nutterb/redcapAPI/wiki/REDCap-API-Parameters

Examples

Run this code
# NOT RUN {
#*** Note: I cannot provide working examples without
#*** compromising security.  Instead, I will try to
#*** offer up sample code with the matching results

#*** Create the connection object
rcon <- redcapConnection(url=[YOUR_REDCAP_URL], token=[API_TOKEN])

exportMetaData(rcon)
# }

Run the code above in your browser using DataLab