ccolmv: Colwise means or variances

Description Usage Arguments Value Examples

View source: R/ctools.R

Description

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

Usage

1
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

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

cpgen documentation built on May 19, 2017, 8:29 p.m.

Search within the cpgen package
Search all R packages, documentation and source code