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

rowSds

sd for each row (fast execution)


Description

rowSds is speed optimized sd (takes matrix or data.frame and treats each line as set of data for sd equiv to apply(dat,1,sd). NAs are ignored from data unless entire line NA). Speed improvements may be seen at more than 100 lines. Note: NaN instances will be transformed to NA

Usage

rowSds(dat)

Arguments

dat

matrix (or data.frame) with numeric values (may contain NAs)

Value

numeric vector of sd values

See Also

Examples

set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),ncol=10)
rowSds(dat1)

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.