Allows you to download data on the gender of community visitors by date.
vkGetGroupStatGender(
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")
)
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.
Time intervals. Possible values: day, week, month, year, all.
Number of time intervals.
A list of words separated by commas
Filter for getting data on a specific block of community statistics. Possible values: visitors, reach, activity.
Your vkontakte login.
Vkontakte API version.
Path to dir with credentials
API access tokens obtained using vkAuth or vkGetToken functions
Date frame with statistics on community visitors with the following values:
the date for which statistics are given.
number of unique visitors.
gender ("m" is male, "f" is female).
Documentation for API method stats.get: https://vk.com/dev/stats.get
# NOT RUN {
## auth
my_tok <- vkAuth(app_id = 1,app_secret = "H2Pk8htyFD8024mZaPHm")
## load data about users by gender
communityDataGender <- vkGetGroupStatGender(
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