Learn R Programming

RMixpanel (version 0.7-1)

mixpanelGetProfilesCount: Get Profiles Count From Mixpanel API

Description

Get the number of profiles (also called 'users' or 'people') conforming to the requested query from the Mixpanel People API.

Usage

mixpanelGetProfilesCount(account, where = "", verbose=TRUE)

Arguments

account

A mixpanel account, as defined in mixpanelCreateAccount.

verbose

If TRUE more output is generated.

Value

The number of profiles conforming to the query.

References

https://mixpanel.com/help/reference/data-export-api#people-analytics

See Also

mixpanelGetProfiles

Examples

Run this code
# 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...")
                                
mixpanelGetProfilesCount(account, where='properties["KPI1"] > 1.32')
# }

Run the code above in your browser using DataLab