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

colSds

sd for each column


Description

colSds is a speed optimized sd for matrix or data.frames. It and treats each line as an independent set of data for calculating the sd (equiv to apply(dat,1,sd)). NAs are ignored from data.

Usage

colSds(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)),nc=10)
colSds(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.