LogicalExpressionsFromRedcapToR: Reshape REDCap logical expresssions to R logical code.

logical_xpressions_red2rR Documentation

Reshape REDCap logical expresssions to R logical code.

Description

Convert REDCap logical expressions to valid R syntax representations.

Usage

logical_xpressions_red2r(x)

Arguments

x

A string with REDCap logic, either raw or preprocessed.

Details

For code generation, code has to be translated from one DSL or syntax to another.

In this case, conversion from REDCap logic to the appropriate R syntax.

This function helps map logical expressions from REDCap to R

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


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