R/fitted.tuneclus.R

Defines functions fitted.tuneclus

Documented in fitted.tuneclus

fitted.tuneclus <- function(object, mth = c("centers", "classes"), ...) 
{
  mth <- match.arg(mth)
  object$clusobjbest$centroid = data.frame(object$clusobjbest$centroid)
  if (mth == "centers") 
    object$clusobjbest$centroid[object$clusobjbest$cluster, , drop = FALSE]
  else object$clusobjbest$cluster
}

Try the clustrd package in your browser

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

clustrd documentation built on July 17, 2022, 1:05 a.m.