R/hamean.R

Defines functions rowhameans colhameans

Documented in colhameans rowhameans

#[export]
colhameans <- function(x, parallel = FALSE)  {
	dim(x)[1]/ Rfast::colsums(1/x, parallel = parallel)
}

#[export]
rowhameans <- function(x)  {
	dim(x)[1]/ Rfast::rowsums(1/x)
}

Try the Rfast package in your browser

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

Rfast documentation built on Nov. 9, 2023, 5:06 p.m.