Define a Google Analytics expression.
Expr(object, comparator, operand, metricScope = "")# S4 method for .expr,ANY
Expr(object)
# S4 method for formula,ANY
Expr(object)
# S4 method for character,character
Expr(object, comparator, operand,
metricScope = "")
A dimension or metric variable, or another object to be coerced to an .expr object.
The comparator to use for the expression.
The operand to use for the expression.
Optional scope to use for segmentation if using a metric. Possible values include "perUser" or "perSession".
object = .expr,comparator = ANY
: Returns itself.
object = formula,comparator = ANY
: Use non-standard formula evaluation to define an expression.
Accepts a formula in the form of: ~ <variable> <comparator>
<operand>
where only the <operand>
is evaluated.
object = character,comparator = character
: Return an expression based on the described variable,
comparator and operand arguments.