R/private.R

setGeneric("private",
	function (obj)
		standardGeneric("private")
)

setMethod("private",
	signature(obj = "VegsoupPartition"),
	function (obj) {
		r <- contingency(obj)
		r <- r > 0
		r[ rowSums(r > 0) != 1, ] <- FALSE
		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.