Description Usage Arguments Value Author(s) References See Also Examples
View source: R/print.retention.R
Print Retention Matrix as counts or percentages.
1 2 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.