mixpanelGetProfilesCount: Get Profiles Count From Mixpanel API

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/mixpanelGetProfilesCount.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

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