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
  )
}
tidyverse/broom documentation built on March 24, 2024, 11:09 a.m.