[R] Complex to polar?

2008-07-27 Thread rkevinburton
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

Re: [R] Complex to polar?

2008-07-27 Thread Prof Brian Ripley
Please read ?complex. On Sun, 27 Jul 2008, [EMAIL PROTECTED] wrote: 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?