rowSds: sd for each row (fast execution)

View source: R/rowSds.R

rowSdsR Documentation

sd for each row (fast execution)

Description

This function is speed optimized sd per line (takes matrix or data.frame and treats each line as set of data for sd, )equiv to using apply. 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

sd

Examples

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

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.