R/deprecated.R

Defines functions estat_table_info

Documented in estat_table_info

#' Get table information for 'e-Stat' data
#'
#' @param x A `estat` object.
#'
#' @return A `tbl_df` of the table information.
#'
#' @export
estat_table_info <- function(x) {
  lifecycle::deprecate_warn("0.3.0", "estat_table_info()", "summary()")

  stopifnot(
    any(c("estat", "tbl_estat") %in% class(x))
  )
  summary(x)
}
UchidaMizuki/japanstat documentation built on April 11, 2024, 8:40 a.m.