
Return Latest Pilot
return_latest_pilot.RdThis function returns the latest pilot in the dataset, relying on the fact that pilot is a factor variable. Useful when there are multiple pilot periods combined in the same dataframe.
See also
Other pilot:
pilot_pds,
set_pilot()
Examples
if (FALSE) { # \dontrun{
#identify paths for json data for each of the periods
mp_paths <- list.files("Data","json", full.names = TRUE)
#read in data
df_mp <- mp_path %>%
set_names() %>%
map(~ read_mixpanel(.x, drop_prop = FALSE)) %>%
list_rbind(names_to = "source_path")
#store the latest pilot
latest <- return_latest_pilot(df_mp)
} # }