Load an example model

ga_model_example(name = "list")

Arguments

name

name of the model - set to "list" to show available files

Examples


# example .gamr files included with the package
ga_model_example()
#> [1] "decomp_ga.gamr"          "decomp_ga_advanced.gamr"
#> [3] "ga-effect.gamr"          "ga4-trend.gamr"         
#> [5] "market-basket.gamr"      "time-normalised.gamr"   

# load one example
ga_model_example("ga4-trend.gamr")
#> ==ga_model object==
#> Description:  GA4 Metric Trend 
#> Data args:    view_id date_range metrics 
#> Input data:   date 
#> Model args:   df 
#> Output args:  df 
#> Packages:     xts dygraphs