R/customEventNameDecode.R

Defines functions customEventNameDecode

## "121212" -> "Custom Name".
customEventNameDecode <- function(
  account,
  event
) {
  if("customEvents" %in% names(account)) {
    ind <- which(event == account$customEvents$custom_event_id)
    if(length(ind))
      event <- account$customEvents$event_name[ind] 
  }
  event
}

Try the RMixpanel package in your browser

Any scripts or data that you put into this service are public.

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