R/tidy.R

Defines functions glance.cluster_fit tidy.cluster_fit

Documented in glance.cluster_fit tidy.cluster_fit

#' Turn a celery model object into a tidy tibble
#'
#' This method tidies the model in a celery model object, if it exists.
#'
#' @inheritParams generics::tidy
#'
#' @return a tibble
#' @export
tidy.cluster_fit <- function(x, ...) generics::tidy(x$fit, ...)


#' Construct a single row summary "glance" of a model, fit, or other object
#'
#' This method glances the model in a celery model object, if it exists.
#'
#' @inheritParams generics::glance
#'
#' @return a tibble
#' @export
glance.cluster_fit <- function(x, ...) generics::glance(x$fit, ...)
kbodwin/celery documentation built on March 26, 2022, 12:33 a.m.