R/data-frame-tidiers.R

Defines functions glance.tbl_df glance.data.frame

Documented in glance.data.frame

#' @export
glance.data.frame <- function(x, ...) {
  stop(
    "There is no glance method for data frames. ",
    "Did you mean `tibble::glimpse()`?",
    call. = FALSE
  )
}

#' @export
glance.tbl_df <- function(x, ...) {
  stop(
    "There is no glance method for tibbles. ",
    "Did you mean `tibble::glimpse()`?",
    call. = FALSE
  )
}

Try the broom package in your browser

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

broom documentation built on Sept. 30, 2024, 9:29 a.m.