negateExp: Negates a boolean expression.

View source: R/negateExp.R

negateExpR Documentation

Negates a boolean expression.

Description

Function that negates a boolean expression.

Usage

negateExp(expression)

Arguments

expression

A boolean expression. Conditions should be capitalized and negated conditions should be inserted with a "~". Unions of conditions are performed with a "+", while intersections are performed with a "*".

Value

It returns a negated boolean expression.

Author(s)

Ioana-Elena Oana

Examples

negateExp("~EMP*MA")
negateExp("~A*B + C*~D")

nenaoana/SetMethods documentation built on April 7, 2023, 2:20 p.m.