R/utils.R

Defines functions assert_df

assert_df <- function(.data) {
  if (!inherits(.data, "data.frame")) {
    stop("'.data' must be a data frame", call. = FALSE)
  }
  .data
}

Try the hacksaw package in your browser

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

hacksaw documentation built on Jan. 13, 2021, 7:57 a.m.