This function can be used as a simple tool for creating at data base metadata file for REDCap (called a DataDictionary) based on a given data set file.
Here we’ll use the sample TALOS dataset included with the package.
Now additional specifications to the DataDictionary can be made manually, or it can be uploaded and modified manually in the graphical user interface on the web page.
The function will transform column names to lower case and substitute spaces for underscores. The output is a list with the DataDictionary and a vector of new column names for the dataset to fit the meta data.
Now the DataDictionary can be exported as a spreadsheet and uploaded
or it can be uploaded using the
REDCapR package (only
projects with “Development” status).
Use one of the two approaches below:
The same two options are available for data upload as meta data
upload: manual or through
Only the latter is shown here.