[R] extracting real parts of eigenvalues

Ott Toomet siim at obs.ee
Tue Sep 24 12:43:25 CEST 2002


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list