R/classify_url_paths.R

Defines functions classify_url_paths

Documented in classify_url_paths

#' Group url paths
#' 
#' 
#' @export classify_url_paths

classify_url_paths <- function(path) {
  if (grepl("/image/", path)) {
    return("/image/")
  } else if (grepl("/intersect/batch/", path)) {
    return("intersect_batch")
  } else if (grepl("fieldguide", path)) {
    return("fieldguide")
  }
  return(path)
}
matildastevenson/kibanr documentation built on Dec. 21, 2021, 2:53 p.m.