mixpanelGetEvents: Get Events From Mixpanel API

Description Usage Arguments Value Author(s) See Also

View source: R/mixpanelGetEvents.R

Description

Get a matrix filled with event data from the Mixpanel API.

Usage

1
2
mixpanelGetEvents(account, event, from, to = from, daysPerBlock = 10,
                 select = TRUE, verbose = TRUE, df = FALSE, encoding="UTF-8", ...)

Arguments

account

A mixpanel account, as defined in mixpanelCreateAccount.

event

Array of event names. 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.

daysPerBlock

Data is downloaded in blocks of fixed size.

select

If "select" is an array of column names, only the specified properties are selected. If TRUE, all columns are selected.

verbose

If TRUE more output is generated.

df

Clean data and return data.frame instead of matrix?

encoding

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.

Value

A character matrix showing one event per line. The first column represents the name of the event, the other column the event properties.

Author(s)

Meinhard Ploner

See Also

mixpanelGetProfiles, mixpanelGetEventsForProfiles


RMixpanel documentation built on May 1, 2019, 10:46 p.m.