Description Usage Arguments Value Author(s) References Examples
Allows you to get data about the city of community visitors by date.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | vkGetGroupStatCountries(
    date_from    = Sys.Date() - 7, 
    date_to      = Sys.Date(), 
    group_id     = NULL, 
    interval     = "day",
    intervals_count = NULL,
    filters      = NULL,
    stats_groups = c("visitors", "reach", "activity"),
    username     = getOption("rvkstat.username"),
    api_version  = getOption("rvkstat.api_version"),
    token_path   = vkTokenPath(),
    access_token = getOption("rvkstat.access_token")
)
 | 
| date_from | The starting date of the displayed statistics in the format YYYY-MM-DD. | 
| date_to | The end date of the displayed statistics in the format YYYY-MM-DD. | 
| group_id | Community ID. | 
| interval | Time intervals. Possible values: day, week, month, year, all. | 
| intervals_count | Number of time intervals. | 
| filters | A list of words separated by commas | 
| stats_groups | Filter for getting data on a specific block of community statistics. Possible values: visitors, reach, activity. | 
| username | Your vkontakte login. | 
| api_version | Vkontakte API version. | 
| token_path | Path to dir with credentials | 
| access_token | API access tokens obtained using vkAuth or vkGetToken functions | 
Date frame with statistics on community visitors with the following values:
| Date | date for which statistics is given. | 
| Visitors | number of unique visitors. | 
| CountryID | country identifier | 
| CountryCode | two-letter country code (for example, "RU"). | 
| CountryName | country name. | 
Alexey Seleznev
Documentation for API method stats.get: https://vk.com/dev/stats.get
| 1 2 3 4 5 6 7 8 9 | ## Not run: 
## auth
## load data
communityDataCountry <- vkGetGroupStatCountries(
                             date_from = "2016-01-01",
                             date_to = "2016-04-01",
                             group_id = 1)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.