ganalytics (version 0.10.7)

Or: Or

Description

Logical OR of two or more expressions.

Usage

Or(object, ...)

# S4 method for .compoundExpr Or(object, ...)

# S4 method for .compoundExpr,.compoundExpr |(e1, e2)

Arguments

object

An object to include within the ORed expression.

...

Additional objects to include within the ORed expression.

e1

first expression

e2

second expression

Value

An object of class orExpr.

Methods (by class)

  • .compoundExpr: Logical-OR of two or more expressions.

  • e1 = .compoundExpr,e2 = .compoundExpr: Logical-OR of two expressions.

See Also

Other boolean functions: And, Not, xor

Examples

Run this code
# NOT RUN {
mobile_or_tablet <- Expr(~deviceCategory == "mobile") | Expr(~deviceCategory == "tablet")
converted <- Expr(~goalCompletionsAll > 0) | Expr(~transactions > 0)

# }

Run the code above in your browser using DataLab