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

2013-12-18 Thread Jeff Newmiller
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 o

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

2013-12-17 Thread Jie Tang
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 . -- TANG Jie [[a