Description Usage Arguments Details REDCap API Documentation REDCap Version Known REDCap Limitations Author(s) References
View source: R/exportMetaData.R
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
1 2 3 4 5 6 7 8 9 | exportMetaData(rcon, ...)
## S3 method for class 'redcapDbConnection'
exportMetaData(rcon, ...)
## S3 method for class 'redcapApiConnection'
exportMetaData(rcon, fields = NULL,
forms = NULL, error_handling = getOption("redcap_error_handling"),
..., drop_utf8 = FALSE)
|
rcon |
A REDCap connection object as generated by |
... |
Arguments to be passed to other methods. |
fields |
A character vector of field names for which the metadata is to be retrieved. |
forms |
A character vector of forms for which the metadata is to be
retrieved. Note that if a form name is given, all of the fields on that form
will be returned, regardless of whether it is included in |
error_handling |
An option for how to handle errors returned by the API.
see |
drop_utf8 |
|
A record of this export is placed in the REDCap logging page, but the file that is exported is not stored in the database.
This function allows you to export the metadata for a project
5.8.2+ (and earlier, but we don't know how much earlier)
The API doesn't respond to the fields and forms arguments. It
always returns the full data dictionary.
Jeffrey Horner
This functionality was 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.