export-MixPanel-method: High-level API request for exporting events

Description Usage Arguments Value Examples

Description

Produces an export request for the specified single event and accounting for the specified parameters. Note that the parameters from_date and to_date are required.

Usage

1
2
## S4 method for signature 'MixPanel'
export(obj, event = NULL, params = NULL)

Arguments

obj

MixPanel object

event

The single event to be exported

params

The list of parameters of API export request

Value

The data.frame containing the exported data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
library(mixpanelR)

api <- MixPanel(
     api_key = "<API_KEY>"
     api_secret = "<API_SECRET>"
)

df <-  export(api,
     event = "project:successful_donation",
     params = list(from_date = "2015-01-01",
                     to_date = "2015-03-05")
)

summary(df)
## End(Not run)

realAkhmed/mixpanelR documentation built on May 27, 2019, 4 a.m.