On Tue, Sep 24, 2002 at 04:30:07AM -0400, Martin Henry H. Stevens wrote:> After calculating eigenvalues, I would like to extract only the real parts. > I tried using as.real() but it gave me warnings that I would like to avoid > generating. Any ideas?Re(your.eigenvalues) ?Re has all the details. Cheers Jason -- Indigo Industrial Controls Ltd. 64-21-343-545 jasont at indigoindustrial.co.nz -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
After calculating eigenvalues, I would like to extract only the real parts. I tried using as.real() but it gave me warnings that I would like to avoid generating. Any ideas? Thank you in advance. Martin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami University Oxford, OH 45056 Office: (513) 529-4206 Lab: (513) 529-4262 FAX: (513) 529-4243 http://www.muohio.edu/~botcwis/bot/henry.html -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
My thanks go to Jason for Re() and associated functions. At 06:19 PM 9/23/2002, you wrote:>On Tue, Sep 24, 2002 at 04:30:07AM -0400, Martin Henry H. Stevens wrote: > > After calculating eigenvalues, I would like to extract only the real > parts. > > I tried using as.real() but it gave me warnings that I would like to avoid > > generating. Any ideas? > >Re(your.eigenvalues) > >?Re has all the details. > >Cheers > >Jason >-- >Indigo Industrial Controls Ltd. >64-21-343-545 >jasont at indigoindustrial.co.nzMartin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami University Oxford, OH 45056 Office: (513) 529-4206 Lab: (513) 529-4262 FAX: (513) 529-4243 http://www.muohio.edu/~botcwis/bot/henry.html -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi, use is.real(): val <- eigen(mat)$values val(is.real(val)) Cheers, Ott On Tue, 24 Sep 2002, Martin Henry H. Stevens wrote: |After calculating eigenvalues, I would like to extract only the real parts. |I tried using as.real() but it gave me warnings that I would like to avoid |generating. Any ideas? | |Thank you in advance. | |Martin Henry H. Stevens, Assistant Professor |338 Pearson Hall |Botany Department |Miami University |Oxford, OH 45056 | |Office: (513) 529-4206 |Lab: (513) 529-4262 |FAX: (513) 529-4243 |http://www.muohio.edu/~botcwis/bot/henry.html | |-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- |r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html |Send "info", "help", or "[un]subscribe" |(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch |_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ | -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Yes, Please check Re(). The details of all the functions to handle complex arithmetic is under "complex". Regards, Carlos. -----Mensaje original----- De: owner-r-help at stat.math.ethz.ch [mailto:owner-r-help at stat.math.ethz.ch]En nombre de Martin Henry H. Stevens Enviado el: martes, 24 de septiembre de 2002 10:30 Para: r-help at stat.math.ethz.ch Asunto: [R] extracting real parts of eigenvalues After calculating eigenvalues, I would like to extract only the real parts. I tried using as.real() but it gave me warnings that I would like to avoid generating. Any ideas? Thank you in advance. Martin Henry H. Stevens, Assistant Professor 338 Pearson Hall Botany Department Miami University Oxford, OH 45056 Office: (513) 529-4206 Lab: (513) 529-4262 FAX: (513) 529-4243 http://www.muohio.edu/~botcwis/bot/henry.html -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ _____ The information in this email is confidential and it may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted is prohibited and may be unlawful. Minorplanet cannot accept responsibility for the accuracy or completeness of this email as it has been transmitted over a public network. If you suspect that the email may have been amended, please call the sender. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 24 Sep 2002, Martin Henry H. Stevens wrote:> After calculating eigenvalues, I would like to extract only the real parts. > I tried using as.real() but it gave me warnings that I would like to avoid > generating. Any ideas?Re(x) accesses the real part of a complex vector. Roger -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no and: Department of Geography and Regional Development, University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._