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 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 NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.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.


[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

[[alternative HTML version deleted]]

__
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.