rowSDs: rowSDs

Description Usage Arguments Value Examples

Description

Find the standard deviation of rows; analagous to rowMeans.

Usage

1
rowSDs(x, na.rm = FALSE)

Arguments

x

a matrix or data frame, containing numeric, integer, or logical values.

na.rm

logical. Should missing values be omitted from calculations?

Value

A vector with length nrow(x) containing the standard deviation of each row of x.

Examples

1
2
3
myMatrix <- rbind(c(1,2,3,4,5), c(TRUE, FALSE, TRUE, TRUE, FALSE), c(0.3, 0.2, NA, 0.1, 0.1))
rownames(myMatrix) <- c("a", "b", "c")
rowSDs(myMatrix, na.rm = TRUE)

eheinzen/Ethan documentation built on May 3, 2019, 4:32 p.m.