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

convert_dates_red2rR Documentation

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

Description

Date conversion from REDCap to R.

Usage

convert_dates_red2r(x)

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, format_branching_logics, is_hidden, logical_xpressions_red2r, xtend_chb_names


smockin/RedcapData documentation built on Feb. 2, 2023, 3:19 a.m.