R/hierarchical.R

hierarchical <- function(X, method, h) {
	dX <- dist(X)
	tree <- hclust(dX,method=method)
	clus <- cutree(tree,h=h)
	return(clus)
}
arnhew99/mappeR documentation built on May 10, 2019, 1:45 p.m.