Description Usage Arguments Details Value Methods (by class) See Also Examples
Google Analytics dimension and metric variables.
Var<-
sets the value of an object belonging to the superclass .var
or sets the var slot of an expression object belonging to superclass .expr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | Var(object, ...)
Var(object) <- value
GaVar(object, ...)
GaVar(object) <- value
McfVar(object, ...)
McfVar(object) <- value
RtVar(object, ...)
RtVar(object) <- value
## S4 method for signature 'character'
Var(object)
## S4 replacement method for signature '.var,character'
Var(object) <- value
## S4 method for signature '.expr'
Var(object)
## S4 replacement method for signature '.expr,character'
Var(object) <- value
## S4 method for signature '.gaVarList'
Var(object)
## S4 method for signature 'character'
GaVar(object)
## S4 replacement method for signature '.gaVar,character'
GaVar(object) <- value
## S4 method for signature '.expr'
GaVar(object)
## S4 replacement method for signature '.expr,character'
GaVar(object) <- value
## S4 method for signature '.gaVarList'
GaVar(object)
## S4 method for signature 'ANY'
McfVar(object)
## S4 method for signature 'ANY'
RtVar(object)
|
object |
An object that inherits from or extends the class |
... |
A replacement value for |
value |
any object that can be coerced to a valid |
Var
returns a .var
object which is valid Google Analytics
dimension or metric for use with the core reporting, multi-channel-funnel
reporting or real-time reporting API.
Use Var
to lookup a dimension or metric from the Google Analytics core
reporting, multi-channel-funnel reporting, or real-time reporting APIs, for
use in defining expressions (of superclass .expr
) or (to be
implemented) variable lists (of superclass .varList
) such as query
dimensions, metrics or sortBy parameters.
Var
accepts either a character, .var
, or .expr
object. A
character object will be coerced to a .var
object by looking for a
matching dimension or metric from the Core Reporting, Multi-Channel Funnel
Reporting, and Real-Time Reporting APIs. Providing an .expr
object
will return the dimension or metric used within that Google Analytics
expression.
An object inheriting from the superclass .var
character
: Coerce a character to '.var'.
object = .var,value = character
: Set a '.var' object to a new value coerced from character.
.expr
: Get the variable of an expression object.
object = .expr,value = character
: Set the variable of an expression object using a character value to be coerced to '.var'.
.gaVarList
: Get the variables within a variable list object, such as sortBy, dimensions or metrics.
character
: GaVar takes a GA variable name and determines whether to return a Dimension or Metric object
object = .gaVar,value = character
: Set the Var of a gaExpr object.
.expr
: Get the variable from expression object coerced to '.garVar'.
object = .expr,value = character
: Set the variable of an expression to a .gaVar as named by a character value.
.gaVarList
: Get the variables of a .gaVarList.
ANY
: McfVar takes a MCF variable and determines whether to return a Dimension or Metric object
ANY
: McfVar takes a RT variable and determines whether to return a Dimension or Metric object
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.