Skip to contents

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.