Learn R Programming

GMCM (version 1.1.1)

colSds: Compute row and column standard deviations

Description

The rowSds and colSds respectively computes the standard deviations of the rows and columns of the given matrix.

Usage

colSds(x)

rowSds(x)

Arguments

x
A numeric matrix of size n times m

Value

  • colSds returns a numeric vector of length m.

    rowSds returns a numeric vector of length n.

See Also

rowMeans, colMeans

Examples

Run this code
x <- matrix(rnorm(50), 10, 5)
GMCM:::colSds(x)
y <- matrix(rnorm(50), 10, 5)
GMCM:::rowSds(y)

Run the code above in your browser using DataLab