Or: Or

Description Usage Arguments Value Methods (by class) Note See Also Examples

Description

Logical OR of two or more expressions.

Usage

1
2
3
4
5
6
7
Or(object, ...)

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

## S4 method for signature '.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)

Note

Google Analytics does not support ORing of ANDed expressions – Only ANDing of ORed expresisons are supported. Consider De Morgan's laws for possible ways to work around this limitation.

See Also

Other boolean functions: And, Not, xor

Examples

1
2
mobile_or_tablet <- Expr(~deviceCategory == "mobile") | Expr(~deviceCategory == "tablet")
converted <- Expr(~goalCompletionsAll > 0) | Expr(~transactions > 0)

ganalytics documentation built on May 2, 2019, 8:34 a.m.