format_variables: Convert a REDCap Data Field to an R Vector

View source: R/formatting_functions.R

format_variablesR Documentation

Convert a REDCap Data Field to an R Vector

Description

Converts a field exported from REDCap into a valid R vector

Usage

format_variables(record_data, data_dict, factor_labels = TRUE, dates = TRUE)

Arguments

record_data

A data frame of records returned by rc_export

data_dict

A data frame giving the data data_dictionary, as returned by exportMetaData

factor_labels

Logical, determines if checkbox, radio button, dropdown and yesno variables are labelled.

dates

Logical, determines if date variables are converted to POSIXct format

Author(s)

Jeffrey Horner


marcuslehr/rctools documentation built on Aug. 10, 2024, 4:55 a.m.