R/Generate.clusters.R

"Generate.clusters" <-
function(tr, c=3) {
  cl <- list();	
	n <- length(tr);
  for (i in 1:n) {
		plot(tr[[i]], main="");
	  cl[i] <- list(stats::rect.hclust(tr[[i]], k = c));
	}
  cl
}

Try the clusterv package in your browser

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

clusterv documentation built on June 8, 2025, 10:21 a.m.