GaView: ga_view_selector

Description Usage Arguments Value Methods (by class) Examples

Description

A menu user-interface for selecting a Google Analytics view.

Get the view ID of the query.

Set the view ID for the query.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ga_view_selector(creds = GoogleApiCreds(), with_gui = FALSE)

GaView(object, value)

GaView(object) <- value

## S4 method for signature 'gaProperty,missing'
GaView(object)

## S4 method for signature 'gaAccount,missing'
GaView(object)

## S4 method for signature 'ANY,missing'
GaView(object)

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

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

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

Arguments

creds

Optional. An OAuth2.0 credentials object to use for the request.

with_gui

Optional. Boolean value indicating whether to use a GUI for the menu. Default is FALSE.

object

An object to coerce to a gaView 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.

Value

A gaView object.

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
   my_ga_account <- GaAccounts()[['60253332']]
   my_website_property <- my_ga_account$properties[['UA-60253332-2']]
   my_default_view <- GaView(my_website_property)

## End(Not run)
## Not run: 
   my_ga_account <- GaAccounts()[['60253332']]
   my_default_view <- GaView(my_ga_account)

## End(Not run)

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