[R] Extracting data from Eigen function

From: SS-R <sarvagya.s_at_gmail.com>
Date: Mon, 03 Mar 2008 15:42:58 -0800 (PST)

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?

> eig

[1] 1.2840277 0.0490834


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

View this message in context: http://www.nabble.com/Extracting-data-from-Eigen-function-tp15816996p15816996.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 04 Mar 2008 - 00:20:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Mar 2008 - 01:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive