getCV: Calculate coefficient of variation (CV)

View source: R/getCV.R

getCVR Documentation

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)

Arguments

x

sample ion intensity matrix, row sample, column feature.

Group

sample group information

Value

a dataframe with mean values and cv

Examples

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

YonghuiDong/MSbox documentation built on Jan. 12, 2023, 3:48 p.m.