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:<jdnew...@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 <totang...@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 .

______________________________________________
R-help@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.

Reply via email to