Get a matrix filled with event data from the Mixpanel API.
mixpanelGetEvents(account, event, from, to = from, daysPerBlock = 10,
select = TRUE, verbose = TRUE, df = FALSE, encoding="UTF-8", ...)
A mixpanel account, as defined in mixpanelCreateAccount
.
Array of event names. If empty, all events are returned.
Start date in either format <"yyyy-mm-dd"> or <yyyymmdd>. Inclusive.
End date in either format <"yyyy-mm-dd"> or <yyyymmdd>. Inclusive.
Data is downloaded in blocks of fixed size.
If "select"
is an array of column names, only the specified properties are selected. If TRUE
, all columns are selected.
If TRUE
more output is generated.
Clean data and return data.frame
instead of matrix
?
JSON Encoding. Default is UTF8.
Additional arguments to be included in the Mixpanel API request. E.g. where = "properties[\"$os\"]==\"iPhone OS\""). See also https://mixpanel.com/help/reference/data-export-api#events.
A character matrix showing one event per line. The first column represents the name of the event, the other column the event properties.