ga_model_prophet: A ga_model for prophet forecasting

Description Usage Arguments Value Examples

View source: R/ga_model_prophet.R

Description

A ga_model for prophet forecasting

Usage

1
2
3
ga_model_prophet(viewId, date_range = c(Sys.Date() - 400, Sys.Date() -
  1), forecast_days = 30, metric = "sessions", dim_filter = NULL,
  interactive_plot = FALSE)

Arguments

viewId

The viewID of the Ga account to forecast from

date_range

The date range of training data

forecast_days

The amount of days forward to forecast

metric

The metric to forecast

dim_filter

A filter_clause_ga4 when fetching data

interactive_plot

Whether to output an interactive plot or not

Value

A ga_model object

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(prophet)
library(dygraphs)
library(googleAnalyticsR)

ga_model_prophet(81416156)


## End(Not run)

IronistM/googleAnalyticsModelR documentation built on May 17, 2019, 1:13 a.m.