R/shared.R

#	shared species
setGeneric("shared",
	function (x)
		standardGeneric("shared")
)

setMethod("shared",
	signature(x = "VegsoupPartition"),
	function (x) {
		X <- constancy(x) > 0
		mode(X) <- "numeric"
		res <- vegan::designdist(t(X), method = "J/(A+B)*100", terms = "binary")
	return(res)
	}
)

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.