[R] how to analysisi spectrum of a dataset with NA value

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Dec 18 09:47:46 CET 2013


This behavior is typical for "fast" Fourier Transform algorithms. You need to decide what theory you want to use in dealing with your missing data, and apply that yourself. There are some packages that can help you (e.g. Lomb-Scargle or discrete slow Fourier transform). Search with package sos or use the RSiteSearch function.

Please read the Posting Guide regarding not using HTML formatted email... your code fragment was unreadable as is common with non-plain text.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Jie Tang <totangjie at gmail.com> wrote:
>hi R users
>
>I have a large 1D dataset and some of them is NA value .
>
>I found I cound get the spectrum by such a command.
>
>ua=c��10��30 ��40��50��NA��
>spectrum(ua)
> and I could not use na.rm just like mean or sd function
>
>How could I get the spectrum of ua ?
>
> thank you .



More information about the R-help mailing list