R/utils.R

Defines functions `%||%`

#' @keywords internal
`%||%` <- function(x, y) {
  if (is.null(x)) y else x
}

Try the dataset package in your browser

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

dataset documentation built on June 8, 2025, 10:15 a.m.