processLogiOper: Processing Logical Operations

Description Usage Arguments Value Examples

Description

Dynamically process the logical operations over a list of string and get the result

Usage

1
processLogiOper(logicalOperation, stringList)

Arguments

logicalOperation

A String containing the logical operation to be performed

stringList

A list of String over which the logical operation is to be performed

Value

A list of the output values(0/1)

Examples

1
2
3
4
5
logicalOperation <- "AND(Cake,OR(Birthday,Anniversary))"
stringList <- c("The cake at the birthday was awesome."
                ,"Their anniversary was last week.")

processLogiOper(logicalOperation, stringList)

Example output

[1] 1 0

RLogicalOps documentation built on May 1, 2019, 11:29 p.m.