colSds | R Documentation |
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.
colSds(dat)
dat |
matrix (or data.frame) with numeric values (may contain NAs) |
numeric vector of sd values
sd
set.seed(2016); dat1 <- matrix(c(runif(200)+rep(1:10,20)),nc=10) colSds(dat1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.