The function vkGetGroupStatCity allows you to get data about the city of community visitors by date.
vkGetGroupStatCity(date_from = Sys.Date(),
date_to = Sys.Date(),
group_id = NULL,
access_token = NULL)
The starting date of the displayed statistics in the format YYYY-MM-DD.
The end date of the displayed statistics in the format YYYY-MM-DD.
Community ID.
API access token, obtained using the functions vkAuth or vkGetToken
Date frame with statistics on community visitors with the following values:
date for which statistics is given.
number of unique visitors.
city identifier or "other" for the "other cities" section.
city name.
# NOT RUN {
## auth
my_tok <- vkAuth(app_id = 1,app_secret = "H2Pk8htyFD8024mZaPHm")
## load statistic
communityDataCity <- vkGetGroupStatCity(
date_from = "2016-01-01",
date_to = "2016-04-01",
group_id = 1,
access_token = my_tok$access_token)
# }
Run the code above in your browser using DataLab