ConvertDatesInRedcapToR: Convert REDCap string dates to R dates (code preparation).

Description Usage Arguments Details Value See Also

Description

Date conversion from REDCap to R.

Usage

1

Arguments

x

A string with REDCap logic, either raw or preprocessed.

Details

In REDCap logic, dates are represented as raw strings.

This is unlike R which requires objects to be of class 'Date' for date-like operations to be carried out on the object.

This requires conversion to facilitate date-based operations.

Value

Preprocessed R code that can be refined further or valid R syntax that can be parsed into an expression tree for evaluation.

See Also

Other RedcapToR: convert_missing_red2r; logical_xpressions_red2r; xtend_chb_names


Maglado/redcapdata_p documentation built on May 26, 2019, 4:37 p.m.