Create a Core Reporting API expression.
GaExpr(object, comparator, operand, metricScope = "")# S4 method for character,character GaExpr(object, comparator, operand, metricScope = "")
# S4 method for character,character GaExpr(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 = character,comparator = character: Return a Google Analytics expression using the described variable, operator and operand.
object = character,comparator = character
Other expression generators: Expr, McfExpr, RtExpr
Expr
McfExpr
RtExpr
# NOT RUN { myQuery <- GaQuery(view = 123456789) source_matches_google <- GaExpr("source", "~", "google") TableFilter(myQuery) <- source_matches_google # }
Run the code above in your browser using DataLab