ccolmv: Colwise means or variances

View source: R/ctools.R

ccolmvR Documentation

Colwise means or variances

Description

Computes the colwise means or variances of a matrix - internal use

Usage

ccolmv(X,compute_var=FALSE)

Arguments

X

matrix of type: matrix or dgCMatrix

compute_var

boolean, defines whether the colwise variances rather than the means will be returned

Value

Numeric Vector of colwise means or variances of X

Examples


X <- matrix(rnorm(1000*500),1000,500)
means <- ccolmv(X)
vars <- ccolmv(X,compute_var=TRUE)


cheuerde/cpgen documentation built on July 27, 2023, 11:34 a.m.