compute CV for each row in matrix

Description

Typically used to create and violin plot

Usage

1
CV(data, top = 30, na.rm = TRUE)

Arguments

data

matrix

top

remove top (default 30) CV

na.rm

default TRUE

Examples

1
2
3
4
5
6
dat <- matrix(rnorm(1000,10,5), ncol=20)
dim(dat)
cv <- CV(dat, top=5)
length(cv)
stopifnot(length(cv) == 45)
hist(cv)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.