Learn R Programming

wrMisc (version 1.15.3.1)

arrayCV: CV of array

Description

arrayCV gets CVs for replicates in 2 or 3 dim array and returns CVs as matrix. This function may be used to calculate CVs from replicate microtiter plates (eg 8x12) where replicates are typically done as multiple plates, ie initial matrixes that are the organized into arrays.

Usage

arrayCV(arr, byDim = 3, silent = TRUE, callFrom = NULL)

Value

matrix of CV values

Arguments

arr

(3-dim) array of numeric data like where replicates are along one dimesion of the array

byDim

(integer) over which dimension repliates are found

silent

(logical) suppres messages

callFrom

(character) allow easier tracking of message produced

See Also

rowCVs, rowGrpCV, replPlateCV

Examples

Run this code
set.seed(2016); dat1 <- matrix(c(runif(200) +rep(1:10,20)), ncol=10)
head(arrayCV(dat1,byDim=2))

Run the code above in your browser using DataLab