Column and row wise coefficients of variation {Rfast}R Documentation

Column and row wise coefficients of variation

Description

Column and row wise coefficients of variation.

Usage

colcvs(x, ln = FALSE, unbiased = FALSE) 
rowcvs(x, ln = FALSE, unbiased = FALSE) 

Arguments

x

A numerical matrix with the data.

ln

If you have log-normally distributed data (or assume you do), then set this to TRUE.

unbiased

A boolean variable indicating whether the unbiased for shpould be returned. This is applicable in case of small samples.

Details

The colum-wise coefficients of variation are calculated.

Value

A vector with the coefficient of variation for each column or row.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.

See Also

colsums, colVars

Examples

m <- rnorm(100, 10)
x <- matrix(rnorm(100 * 100, m, 1), ncol = 100)
a1 <- colcvs(x)
a2 <- colcvs(x[1:25, ], unbiased = TRUE)
a3 <- colcvs( exp(x), ln = TRUE)
x <- NULL

[Package Rfast version 2.1.0 Index]