forecast: KPIs forecasts

Description Usage Arguments Note Examples

View source: R/forecast.R

Description

The forecast function makes forecasts for your website KPIs for the next 3 months, using time-series.

Usage

1
forecast(kpi, website, export = FALSE)

Arguments

kpi

A Google Analytics metric, such as ga:metrics.

website

The unique Google Analytics table ID of the form ga:XXXXXXX, where XXXXXXX is the Analytics view (profile) ID for which the query will retrieve the data.

export

If the export option is set as "TRUE", both raw data & graphics will be exported in the current working directory.

Note

The black part is the past website traffic data; the blue part is the graphical representation of the forecast.

Examples

1
2
3
## Not run: 
forecast(kpi = "ga:sessions", website = "ga:XXXXXXX", export = FALSE)
## End(Not run)

thesmarthomeninja/marketeR documentation built on May 27, 2019, 1:09 p.m.