[R] R function returning a list of variable(s) conditional on the value of an option?

2014-07-25 Thread Luke Hartigan
Dear all, I have an R function which returns a list of variables; however, within the body of the function I would like to incorporate a branch based on a user selected option that will mean there will be one different variable to return based on the option value. I was thinking of doing somethin

Re: [R] Solve an ordinary or generalized eigenvalue problem in R?

2012-04-21 Thread Luke Hartigan
Hi all, In my experience, using eigen to solve generalized eigenvalue / eigenvector problems only gives correct looking eigenvalues while the eigenvectors seem to be wrong (in comparison to results from MATLAB's 'eig' function for example). However, I think it is possible to solve generalized eig