Learn R Programming

textir (version 1.4)

sdev: Sparse Matrix Standard Deviation

Description

Standard deviation for columns of a simple_triplet_matrix.

Usage

sdev(x)

Arguments

x
A simple_triplet_matrix (or a matrix, in which case the function returns apply(x,2,sd)).

Value

  • An ncol(x)-length vector containing standard deviations of the columns of x.

See Also

sd, freq, corr, congress109

Examples

Run this code
data(congress109)
sdev(congress109Counts)[1:20]

Run the code above in your browser using DataLab