Expr: Expr

Description Usage Arguments Methods (by class) See Also Examples

Description

Define a Google Analytics expression.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Expr(object, comparator, operand, metricScope = "")

## S4 method for signature '.expr,ANY'
Expr(object)

## S4 method for signature 'formula,ANY'
Expr(object, metricScope)

## S4 method for signature 'character,character'
Expr(object, comparator, operand,
  metricScope = "")

Arguments

object

A dimension or metric variable, or another object to be coerced to an .expr object.

comparator

The comparator to use for the expression.

operand

The operand to use for the expression.

metricScope

Optional scope to use in the case of metric variables for segmentation. Possible values include "perUser" or "perSession".

Methods (by class)

See Also

Other expression generators: GaExpr, McfExpr, RtExpr

Examples

1
2
3
source_google <- Expr(~source == "google")
source_google <- Expr("source", "==", "google")
bounces <- Expr("bounces", ">", 0)

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