anti_sample: Get a GA request with anti-sampling

Description Usage Arguments

View source: R/anti_sample.R

Description

Calculates multiple API calls to avoid sampling

Usage

1
2
3
anti_sample(anti_sample_batches, viewId, date_range, metrics, dimensions,
  dim_filters, met_filters, filtersExpression, order, segments, pivots, cohorts,
  metricFormat, histogramBuckets)

Arguments

viewId

viewId of data to get.

date_range

character or date vector of format c(start, end) or for two date ranges: c(start1,end1,start2,end2)

metrics

Metric to fetch. Supports calculated metrics.

dimensions

Dimensions to fetch.

dim_filters

A filter_clause_ga4 wrapping dim_filter

met_filters

A filter_clause_ga4 wrapping met_filter

filtersExpression

A v3 API style simple filter string. Not used with other filters.

order

An order_type object

segments

List of segments as created by segment_ga4

pivots

Pivots of the data as created by pivot_ga4

cohorts

Cohorts created by make_cohort_group

metricFormat

If supplying calculated metrics, specify the metric type

histogramBuckets

For numeric dimensions such as hour, a list of buckets of data. See details in make_ga_4_req


GeeHLee/GoogleR documentation built on May 6, 2019, 5:34 p.m.