R/sround.R

Defines functions sround

Documented in sround

sround <- function(x) {
	if(inherits(x, "list") || inherits(x, "data.frame")) {
		for(i in 1:length(x)) {
			x[[i]] <- ifelse(abs(x[[i]]) < 1e-7, 0, x[[i]])
		}
	}
	else {
			ifelse(abs(x) < 1e-7 , 0, x)
	}
}
baddstats/spherstat documentation built on Feb. 6, 2023, 1:45 a.m.