R/disdiam.R

#	dissimilarity diameters
if (!isGeneric("disdiam")) {
setGeneric("disdiam",
	function (x, ...)
		standardGeneric("disdiam")
)
}

setMethod("disdiam",
	signature(x = "VegsoupPartition"),
	function (x, ...) {
		if (getK(x) == 1)
			stop("meaningless with k = ", getK(x))
		r <- optpart::disdiam(partitioning(x), as.dist(x))
		return(r)
	}
)

Try the vegsoup package in your browser

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

vegsoup documentation built on Feb. 24, 2021, 3 a.m.