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
  )
}
dgrtwo/broom documentation built on Feb. 14, 2023, 12:40 a.m.