Learn R Programming

ganalytics (version 0.10.7)

And: And

Description

Logical AND of two or more expressions.

Usage

And(object, ...)

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

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

Arguments

object

An object to include within the ANDed expression.

...

Additional objects to include within the ANDed expression.

e1

first expression

e2

second expression

Value

An object of class andExpr

Methods (by class)

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

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

See Also

Other boolean functions: Not, Or, xor

Examples

Run this code
# NOT RUN {
purchased_on_mobile <- Expr(~deviceCategory == "mobile") & Expr(~transactions > 0)

# }

Run the code above in your browser using DataLab