#' Touch-point Frequency Across Paths
#'
#' @param paths paths
#' @param touchpoint touchpoint
#' @return numeric vector
tf = function(paths, touchpoint){
all_touchpoints = stringr::str_trim(unlist(stringr::str_split(paths, ">")))
sum(touchpoint == all_touchpoints, na.rm = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.