R/utils.R

Defines functions new_data_frame

new_data_frame <- function(x, nrow = length(x[[1]])) {
  tibble::new_tibble(x, nrow = nrow)
}

`%||%` <- function (x, y) {
  if (is.null(x)) y else x
}
paleolimbot/wkutils documentation built on Feb. 5, 2023, 10:42 a.m.