Learn R Programming

MSbox (version 1.4.8)

getCV: Calculate coefficient of variation (CV)

Description

Calculate coefficient of variation (CV), also known as relative standard deviation (RSD) among different sample groups

Usage

getCV(x, Group = NULL)

Value

a dataframe with mean values and cv

Arguments

x

sample ion intensity matrix, row sample, column feature.

Group

sample group information

Examples

Run this code
dat <- matrix(runif(2*300), ncol = 2, nrow = 300)
myGroup <- rep_len(LETTERS[1:2], 300)
ret <- getCV(dat, Group = myGroup)

Run the code above in your browser using DataLab