ganalytics (version 0.10.4)

GaView: GaView.

Description

Get the viewId of the query

Set the viewId for the query.

Usage

GaView(object, value)

GaView(object) <- value

# S4 method for gaProperty,missing GaView(object)

# S4 method for gaAccount,missing GaView(object)

# S4 method for ANY,missing GaView(object)

# S4 method for .query,missing GaView(object)

# S4 method for .query,ANY GaView(object, value)

# S4 method for .query GaView(object) <- value

Arguments

object

An object to coerce to a gaView class object or to get the gaView of, such as a query, default view of a web property, or the default view of the first web property in a Google Analytics account.

value

The optional replacement view if the object supplied is a query, in which case GaView will return the modified query.

Methods (by class)

  • object = gaProperty,value = missing: Select the default view of the property

  • object = gaAccount,value = missing: Selects the first property of the account, which is then used to select a view (as above).

  • object = ANY,value = missing: Returns the ID of the supplied view, or the first view within the supplied property or the first view within the first property of the supplied account, or coerce a numeric or character into a viewId.

  • object = .query,value = missing: gets the view ID of the supplied query

  • object = .query,value = ANY: Set the view of a query, returning the query with the updated view applied.

  • .query: Replaces the view being used by a query.