| print.retention {RMixpanel} | R Documentation |
Print Retention Matrix
Description
Print Retention Matrix as counts or percentages.
Usage
## S3 method for class 'retention'
print(x, percentages=TRUE, silent=FALSE, ...)
Arguments
x |
Object of class |
percentages |
Boolean. Indicates if retain counts should be shown as percentages or raw count. default is |
silent |
If |
... |
Not used. |
Value
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).
Author(s)
Meinhard Ploner
References
https://mixpanel.com/help/reference/data-export-api#retention
See Also
Examples
## 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)
[Package RMixpanel version 0.7-1 Index]