R/tidy.R

Defines functions glance.cluster_fit tidy.cluster_fit

Documented in glance.cluster_fit tidy.cluster_fit

#' Turn a tidyclust model object into a tidy tibble
#'
#' This method tidies the model in a tidyclust 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 tidyclust model object, if it exists.
#'
#' @inheritParams generics::glance
#'
#' @return a tibble
#' @export
glance.cluster_fit <- function(x, ...) generics::glance(x$fit, ...)

Try the tidyclust package in your browser

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

tidyclust documentation built on Sept. 26, 2023, 1:08 a.m.