Description Usage Arguments Details Value Author(s) See Also Examples
This function returns the column mean matrix of an input matrix
1 | columnmean(x)
|
x |
The input matrix. Make sure this is a matrix object |
This function calculates the mean of each column within the input matrix. If the matrix has dimension m x n, this function will return a m x n matrix, where each column has the same result, the average of the n elements in the corresponding column in the input matrix.
The column mean matrix
Yao Wang (wang1150@purdue.edu); Lingsong Zhang (lingsong@purdue.edu)
See Also in svd
, apply
, rowmean
, doublemean
, overallmean
.
1 2 3 4 5 6 | #generate a random matrix
x<-matrix(rnorm(100), nrow=20);
#calculate the column mean matrix
y<-columnmean(x);
y
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.