GaExpr: GaExpr

Description Usage Arguments Methods (by class) See Also Examples

Description

Create a Core Reporting API expression.

Usage

1
2
3
4
5
GaExpr(object, comparator, operand, metricScope = "")

## S4 method for signature 'character,character'
GaExpr(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: Expr, McfExpr, RtExpr

Examples

1
2
3
myQuery <- GaQuery(view = 123456789)
source_matches_google <- GaExpr("source", "~", "google")
TableFilter(myQuery) <- source_matches_google

jdeboer/ganalytics documentation built on May 18, 2019, 11:30 p.m.