fetch_app_series-methods: fetch_app_series Methods

Description Usage Arguments Examples

Description

fetch_app_series Methods

Usage

1
2
3
4
5
6
7
fetch_app_series(.Object, app, cadence, start_date = "", end_date = "",
  country_code = "", region = NULL)

## S4 method for signature 'AvenueApiClient'
fetch_app_series(.Object, app = NULL,
  cadence = NULL, start_date = "", end_date = "", country_code = "",
  region = NULL)

Arguments

.Object

A valid AvenueApiClient connection

app

character; an length-1 vector of the Android package name, e.g. "com.facebook.katana"

cadence

character; the cadence requested. Must be one of: 'daily' (daily app usage) or 'weekly' (weekly app usage)

start_date

string; a length-one character vector expressed as 'YYYY-MM-DD' (ISO 8601) representing the start date of the requested series

end_date

string; a length-one character vector expressed as 'YYYY-MM-DD' (ISO 8601) representing the end date of the requested series

country_code

character; the ISO 3166 alpha-2 country_code for which you are requesting app data. If left unset, the API returns data for all countries.

region

character; the UN region code for which you are requesting app data. An error is thrown if both region and country_code are set.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Get app usage data for Facebook
fb <- fetch_app_series(gave, app="com.facebook.katana",
                       cadence="daily",
                       start_date='2015-01-01',
                       country_code = 'US')

## End(Not run)

sevenpark/AvenueAPI-R documentation built on May 13, 2019, 4:10 a.m.