tidy_logical_expression: Tidy/reformat a dependency

Description Usage Arguments Value

View source: R/tidy_logical_expression.R

Description

Tidy and reformat a dependency between fields so that it can be used in a filter statement. Steps are: 1. remove repeated ands/ors (these might occur if a dependency was removed earlier) 2. remove leading/training/internal space 3. remove ands/ors at the beginning/end of the string 4. replace and/or with &/| 5. replace = with == 6. (but change !== back to !=)

Usage

1

Arguments

t

The dependency (character string).

Value

The tidied dependency.


LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.