rowSds: Standard deviation on rows of array (faster than using...

Description Usage Arguments Value Author(s) Examples

View source: R/fdbk_asdataframe.R

Description

Standard deviation on rows of array (faster than using 'apply')

Usage

1
rowSds(a, na.rm = F)

Arguments

a

2d array

Value

standard deviation on rows

Author(s)

Felix <[email protected]>

Examples

1
2
3
4
5
a = array(rnorm(1e5),dim=c(1000,50))
system.time(rowSds(a))
system.time(apply(a,1,sd))
# Results agree besides some numerical precision errors
identical(round(rowSds(a),12),round(apply(a,1,sd),12))

rfxf/Rfdbk documentation built on Dec. 17, 2018, 9:14 a.m.