print.retention {RMixpanel} | R Documentation |
Print Retention Matrix as counts or percentages.
## S3 method for class 'retention' print(x, percentages=TRUE, silent=FALSE, ...)
x |
Object of class |
percentages |
Boolean. Indicates if retain counts should be shown as percentages or raw count. default is |
silent |
If |
... |
Not used. |
Matrix consisting of one row for each cohort. The first column holds the cohort sizes, the following columns the counts for subsequent periods. If percentages
is TRUE
, the counts are percentages (except first column).
Meinhard Ploner
https://mixpanel.com/help/reference/data-export-api#retention
## Not run: ## Fill in here the API token, key and secret as found on ## www.mixpanel.com - Account -> Projects. account = mixpanelCreateAccount("ProjectName", token="c12g3...", secret="168e7e...", key="543c55...") ret = mixpanelGetRetention(account, born_event="AppInstall", event="WatchedItem", from=20150701, to=20151101, unit="week") print(ret, percentages=FALSE) print(ret, percentages=TRUE) ## End(Not run)