rcm: REDCap Metadata Utilities

rcmR Documentation

REDCap Metadata Utilities

Description

Attach metadata to a REDCap data.frame to extract information from the database in an informed manner.

An S3 Class that attaches rows of the REDCap data dictionary to the columns of the data itself.

Usage

rcm(
  df_data,
  df_metadata,
  df_form_event_map = NULL,
  chr_record_id_field = "record_id"
)

Arguments

df_data

Dataframe comprising the downloaded REDCap data. Download from REDCap in CSV format with raw values through the Data Export Tool or the export records API method.

df_metadata

Dataframe comprising the REDCap metadata as downloaded from the Data Dictionary page or through the metadata API method.

df_form_event_map

Optional. Dataframe comprising the REDCap instrument-event mappings as downloaded from the Project Settings page or the formEventMapping API method.


MichaelPascale/rcm documentation built on July 14, 2022, 2:44 a.m.