[R] Problem with filter() ?

From: Matthew Dowle <mdowle_at_concordiafunds.com>
Date: Sat 09 Jul 2005 - 03:37:13 EST

Dear list,

This is ok :

> filter(1:5, 1, "recursive")

Time Series:
Start = 1
End = 5
Frequency = 1
[1] 1 3 6 10 15

But this? :

> filter(c(rep(NA,5),1:5), 1, "recursive")
Time Series:
Start = 1
End = 10
Frequency = 1
 [1] NA 0 NA 0 NA 0 2 5 9 14
>

> version

         _
platform x86_64-redhat-linux-gnu

arch     x86_64                 
os       linux-gnu              
system   x86_64, linux-gnu      
status                          
major    2                      
minor    0.1                    
year     2004                   
month    11                     
day      15                     
language R                      

>

Regards,
Matthew



R-help@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 Received on Sat Jul 09 03:35:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:26 EST