mixpanelGetRetention {RMixpanel} | R Documentation |
Retention Report
Description
Get retention data from Mixpanel API. The resulting object can be printed nicely using print.retention
.
Usage
mixpanelGetRetention(account, event, from, to, unit, retentionType,
intervalCount, verbose=TRUE, ...)
Arguments
account |
A mixpanel account, as defined in |
event |
Event name. If empty, all events are returned. |
from |
Start date in either format <"yyyy-mm-dd"> or <yyyymmdd>. Inclusive. |
to |
End date in either format <"yyyy-mm-dd"> or <yyyymmdd>. Inclusive. |
unit |
Defaults to 'day'. |
retentionType |
|
intervalCount |
Number of intervals per cohort to return. |
verbose |
If |
... |
Additional arguments to Mixpanel API. E.g. |
Value
Object of class retention
including
dates |
Start dates of each cohort. |
cohortCount |
Size of cohorts (people count). |
retainCount |
Number of retained people. |
retainPerc |
Percentage of retained people. |
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...")
mixpanelGetRetention(account, born_event="AppInstall", event="WatchedItem",
from=20150701, to=20151101, unit="week")
## End(Not run)