Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rowGrpSds

Per line and per group sd-values


Description

rowGrpSds calculate Sd (standard-deviation) for matrix with multiple groups of data, ie one sd for each group of data. Groups are specified as columns of 'x' in 'grp' (so length of grp should match number of columns of 'x', NAs are allowed).

Usage

rowGrpSds(x, grp)

Arguments

x

matrix where relplicates are organized into seprate columns

grp

(character or factor) defining which columns should be grouped (considered as replicates)

Value

matrix of sd values

See Also

Examples

set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)
head(rowGrpSds(dat1,gr=gl(4,3,labels=LETTERS[1:4])[2:11]))

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.