mixpanelGetProfilesCount {RMixpanel}R Documentation

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.

where

Expression, see https://mixpanel.com/help/reference/data-export-api#segmentation-expressions.

verbose

If TRUE more output is generated.

Value

The number of profiles conforming to the query.

Author(s)

Meinhard Ploner

References

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

See Also

mixpanelGetProfiles

Examples

## 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')

## End(Not run)

[Package RMixpanel version 0.7-1 Index]