On Mon, Nov 1, 2010 at 11:14 AM, Salim Alexander (salimale)
<salim...@students.zhaw.ch> wrote:
> Hi all,
>
> Issue: I merged two zoo objects (a regular and an irregular). After the merge 
> I used the function 'na.approx' to have also values in the resolution of the 
> regular time series.
>
> Problem: After approximation some rows at the beginning or at the end of the 
> zoo objects disappear due to the 'na.approx' algorithm. Now I just want to 
> have all the rows of the regular time series with the approximated values of 
> the irregular time series back. Because some rows disappear I wasn't able to 
> program a code which works properly for 'all' circumstances. I also tried to 
> work with the 'index' function. Didn't work out so far.
>
> Thank you for your help.
>
> Regards,
> Alex

Note the last line to every message to r-help asking for minimal
reproducible code.   Without that one cannot be sure what the problem
is but note the na.rm= argument on na.approx.zoo .

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
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