make_readcap_dictionary: Convert Redcap data dictionary into {matchmaker} dictionary...

View source: R/dictionary_based_cleaning.R

make_readcap_dictionaryR Documentation

Convert Redcap data dictionary into {matchmaker} dictionary format

Description

Convert Redcap data dictionary into {matchmaker} dictionary format

Usage

make_readcap_dictionary(metadata, field_column, opt_column, field_type)

Arguments

metadata

A data frame with the data dictionary associated to a Redcap project

field_column

The name of the column, in the input dictionary, that contains the field names in of the Redcap project data

opt_column

The name of the column, in the input dictionary, that contains the definition of the choices in every column of the Redcap project data

field_type

A character with the name of the column that contains the field type information

Value

A data frame with 4 columns. This is in the format required by the {matchmaker} R package for dictionary-based cleaning.


cleanepi documentation built on June 22, 2024, 9:48 a.m.