[R] Complex to polar?

From: <rkevinburton_at_charter.net>
Date: Sun, 27 Jul 2008 00:05:50 -0700


I am using fft(x) to compute the fft of a real-valued sequence. This returns (as expected an array of complex numbers. Is ther an R function to transform these complex numbers into two arrays for the magnitude and phase? Basically polar notation?

Thank you.

Kevin



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 27 Jul 2008 - 07:09:54 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 Sun 27 Jul 2008 - 07:32:40 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