R/mean.R

Defines functions rowmeans colmeans.data.frame colmeans.matrix colmeans

Documented in colmeans colmeans.data.frame colmeans.matrix rowmeans

#[export]
colmeans <- function(x,parallel = FALSE,cores = 0) {
	UseMethod("colmeans")
}

#[export s3]
colmeans.matrix <- function(x,parallel = FALSE,cores = 0) {
	.Call(Rfast_col_means,x,parallel,cores)
}

#[export s3]
colmeans.data.frame <- function(x,parallel = FALSE,cores = 0) {
	.Call(Rfast_col_means,x,parallel,cores)
}

#[export]
rowmeans <- function(x) {
  	as.vector(.Call(Rfast_row_means,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.