CV: compute CV for each row in matrix

Description Usage Arguments Examples

View source: R/CV.R

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)

protViz/quantable documentation built on Nov. 29, 2021, 10:07 a.m.