[R] Replacing NA in fSeries

Spencer Graves spencer.graves at pdf.com
Fri Aug 4 06:31:10 CEST 2006


	  Will 'na.locf' in the 'zoo' package do what you want?

	  If not, please provide commented, minimal, self-contained, 
reproducible code as suggested in the posting guide 
(www.R-project.org/posting-guide.html).

	  Hope this helps.
	  Spencer Gaves
p.s.  The 'zoo' package contains an excellent vignette.  If you are not 
familiar with vignettes, I suggest you read 
"http://finzi.psych.upenn.edu/R/Rhelp02a/archive/67006.html" and then 
try the zoo vignette.

Kerpel, John wrote:
> Hi folks!
> 
>  
> 
> What's a good way to replace NAs with a prior value in a time series
> created with the fSeries package?
> 
>  
> 
> Thanks,
> 
> John
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.



More information about the R-help mailing list