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)

quantable documentation built on May 30, 2017, 2:11 a.m.

Search within the quantable package
Search all R packages, documentation and source code