Description Usage Arguments Value
View source: R/retention_predictors.r
Calculates a platform action distribution for a given group of users over a given time frame. Requires the existence of a pa_flash_cat temporary table.
1 2 3 | calculatePADist(users = NULL, minTime = 0, maxTime = 60, agg = F,
runDate = as.numeric(gsub(pattern = "-", replacement = "", x = Sys.Date())),
con = redshift_connection$con)
|
users |
A numeric vector of user ids. |
minTime |
The earliest moment to count platform actions, relative to the users' first platform action. (Numeric, measured in minutes.) |
maxTime |
The last moment to count platform actions, relative to the users' first platform action. (Numeric, measured in minutes.) |
agg |
Logical. Should results be reported in aggregate (T) or on an individual basis (F). |
runDate |
A dateid of the form yyyymmdd (numeric). All dates after the runDate will be filtered out. |
con |
Database connection to use for query. |
A data frame of the form (user_id, platform_action_category, percentage).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.