rename_redcap_vars: Rename a REDCap Data Frame to Follow CAM Naming Standards

View source: R/R03-REDCap.R

rename_redcap_varsR Documentation

Rename a REDCap Data Frame to Follow CAM Naming Standards

Description

Rename a data frame downloaded from REDCap using the field annotation located in the metadata data frame downloaded with the data. See valiate_var_name() for more information on the naming standard. Warns the user for any field that does not contain a new name that conforms to the standard in the field annotation.

Usage

rename_redcap_vars(rcDtf, metaDtf)

Arguments

rcDtf

A data frame containing the data downloaded from REDCap.

metaDtf

A data frame containing the meta data (data dictionary) downloaded from REDCap.

Value

A data frame where all columns have been renamed to conform to the CAM standard for R names.

Author(s)

William Schmitt


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.