R/utils.R

Defines functions any_apply commas

commas <- function(...) paste0(..., collapse = ", ")

any_apply <- function(xs, f) {
  for (x in xs) {
    if (f(x)) return(TRUE)
  }
  FALSE
}

Try the cubelyr package in your browser

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

cubelyr documentation built on Nov. 10, 2022, 6:09 p.m.