Convenience method to convert from pseudo json of Mixpanel's export API to R matrix holding events.
eventsJson2RMatrix(jsonData, select = TRUE)
Result of request to Mixpanel's Export API.
If select
is an array of column names, only the specified properties are selected. If select
is TRUE
, all columns are selected.
A character matrix showing one event per line. The first column represents the name of the event, the other column the event properties.
Ths helper function takes a json result as of the Mixpanel Export API and creates an R matrix holding the data. Array event properties are collapsed using a dash ('-') as separator.