Spotkanie Entuzjastów R, Politechnika Warszawska, 17.03.2016.
Przykłady: wizualizacja danych, klasteryzacja użytkowników, wykrywanie anomalii, prognozowanie w Google Analytics i R.
32. # Get the Sessions by Month in 2014
query.list <- Init(start.date = "2014-01-01",
end.date = "2014-01-31",
dimensions = "ga:date",
metrics = "ga:sessions",
table.id = "ga:000000")
# Create the Query Builder object
ga.query <- QueryBuilder(query.list)
# Extract the data and store it in a data-frame
ga.data <- GetReportData(ga.query, token)
54. # Get the Sessions by Month in 2014
query.list <- Init(start.date = "2014-01-01",
end.date = "2014-12-31",
dimensions = "ga:dimension01,
ga:contentGroup01",
metrics = "ga:contentGroupUniqueViews01",
table.id = "ga:000000")
# Create the Query Builder object
ga.query <- QueryBuilder(query.list)
# Extract the data and store it in a data-frame
ga.data <- GetReportData(ga.query, token)