Skip to content
Prev 138367 / 398506 Next

Extracting data from Eigen function

Hi
I need to extract the data returned by Eigen to plot the eigenvectors.
However, when I try and eigv = eigen(covariance); it returns an object with
the matrices containing eigenvalues and vectors.. how can I extract the
eigenvector matrix from this??

When I try mat = eig["vectors"] it returns a matrix with the "$vectors"
string on top , how can I remove this?

code:
$values
[1] 1.2840277 0.0490834

$vectors
          [,1]       [,2]
[1,] 0.6778734 -0.7351787
[2,] 0.7351787  0.6778734