[R-sig-hpc] extracting the variance from a covariance matrix
R. A. Bilonick
rab at consolidated.net
Fri Oct 22 17:07:14 CEST 2010
On Fri, 2010-10-22 at 12:31 -0200, Marcelo Lima wrote:
> I generated a covariance matrix, since the diagonal of this matrix
> represents the variance of my dataset I would like to extract it. Any
> suggestions on how to obtain?
You can use the "diag" function to extract the diagonal.
More information about the R-sig-hpc