Learn R Programming

quantable (version 0.3.6)

CV: compute CV for each row in matrix

Description

Typically used to create and violin plot

Usage

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

Arguments

data

matrix

top

remove top (default 30) CV

na.rm

default TRUE

Examples

Run this code
# NOT RUN {
dat <- matrix(rnorm(1000,10,5), ncol=20)
dim(dat)
cv <- CV(dat, top=5)
length(cv)
stopifnot(length(cv) == 45)
hist(cv)

# }

Run the code above in your browser using DataLab