Learn R Programming

ganalytics (version 0.10.7)

xor: xor

Description

xor produces a compound expression that gives the EXCLUSIVE-OR of two expressions.

Usage

xor(x, y)

# S4 method for .compoundExpr,.compoundExpr xor(x, y)

Arguments

x, y

Conditions for an EXCLUSIVE-OR expression.

Methods (by class)

  • x = .compoundExpr,y = .compoundExpr: Exclusive-OR of two expressions.

See Also

Other boolean functions: And, Not, Or

Examples

Run this code
# NOT RUN {
either_enquired_or_downloaded <- xor(
  Expr(~eventCategory == "enquiry"),
  Expr(~eventCategory == "download")
)

# }

Run the code above in your browser using DataLab