cv {MatrixQCvis} | R Documentation |
The function 'cv' calculates the coefficient of variation from columns of a matrix. The coefficients of variation are calculated according to the formula 'sd(y) / mean(y) * 100' with 'y' the column values.
cv(x, name = "raw")
x |
'matrix' |
name |
'character', the name of the returned list |
The function returned a named 'list' (the name is specified by the 'name' argument) containing the coefficient of variation of the columns of 'x'.
'list'
x <- matrix(1:10, ncol = 2) cv(x)