# models that come with the package
ga_model_example()
if (FALSE) {
# your own Google Analytics viewID
my_viewid <- 81416156
# load the model (equivalent to ga_model_load())
decomp_ga <- ga_model_example("decomp_ga.gamr")
# apply model to your data
d1 <- ga_model(my_viewid, model = decomp_ga)
# change default date range to 20 days ago to yesterday
d2 <- ga_model(my_viewid, model = decomp_ga,
date_range = c("20daysAgo","yesterday"))
}
Run the code above in your browser using DataLab