Learn R Programming

googleAnalyticsR (version 0.5.0)

dimension_ga4: Make a dimension object

Description

Make a dimension object

Usage

dimension_ga4(vector, histogramBuckets = NULL)

Arguments

vector

A character vector of dimension names

histogramBuckets

Optional named list of histogram buckets vectors

Value

a list suitable for parsing in req

histograms

If supplying histogramBuckets, the name will be used to create the buckets

e.g. dimensions = c("source", "medium") histogramBuckets = list(source = c(1,5,10,20,200), medium = c(0,7,14,21,999))

Warning: only makes sense to apply to dimensions that are numeric e.g. ga:hour