Re: [R] Extracting data from Eigen function

2008-03-03 Thread Rolf Turner
Use mat <- eig[["vectors"]] If x is a list, ``x[i]'' gives you a (sub-) list of length 1, whereas ``x[[i]]'' gives you the single element of that list. A possibly subtle but important distinction. cheers, Rolf Turner On 4/03/2008, at 12:42 PM, SS-R wrote: > > H

[R] Extracting data from Eigen function

2008-03-03 Thread SS-R
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