| rowMSD | R Documentation |
Calculates the sample mean and standard deviation for each row in a matrix. The mean vector is calculated first. The elements of the matrix are then centered by the mean vector before the sample standard deviation is calculated.
rowMSD(x)
x |
numeric matrix |
A list consisting of:
rm |
vector of row means |
rsd |
vector of row standard deviations |
John Lawrence
x=matrix(rnorm(1000),nrow=10) rowMSD(x)