R/indpower.R

#	congruence between indicator and target species.
#	Halme's indicator power
#	to do: documentation
#if (!isGeneric("Indpower")) {			
setGeneric("Indpower",
	function (obj, ...)
		standardGeneric("Indpower")
)
#}
setMethod("Indpower",
	signature(obj = "Vegsoup"),
	function (obj, type, ...) {
		res <- indpower(as.logical(obj), ...)
		diag(res)  <- NA
		if (type == 0)
			res <- rowMeans(res, na.rm = TRUE)
		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.