colwise-rowise: Colwise and rowwise operations

Description Usage Arguments

Description

cols_means() and rows_means() are simple aliases to colMeans() and rowMeans(). colVars() uses colMeans() to provide an efficient way of computing the variances of the columns of a matrix while rowVars() uses rowMeans() to provide an efficient way of computing the variances of the rows of a matrix.

Usage

1
2
3
4
5
6
7
cols_variances(x)

rows_variances(x)

cols_means(x, na.rm = FALSE, dims = 1L)

rows_means(x, na.rm = FALSE, dims = 1L)

Arguments

x

numeric matrix.


lionel-/gsim documentation built on May 21, 2019, 6:41 a.m.