Forum: open-discussion


RE: Does rollmean ignore partial=numeric? [ Reply ] By: Achim Zeileis on 2012-09-07 07:43 | [forum:17392] |
The simple answer is: yes, partial is ignored. Look at ?rollmean, there is no partial argument. But as there is a ... argument, partial can go in there and is ignored. The manual page also points out that rollapply should be used for cases that are more general. |
Does rollmean ignore partial=numeric? [ Reply ] By: john eckstein on 2012-09-07 04:21 | [forum:17390] |
I get the following under zoo 1.7-7, r 2.14.1 kk <- zoo(rep(1,10)) rollapply(kk,5, mean, align="right", partial=3) gives a different (and wrong) answer as opposed to rollapply(kk,5, mean, align="right", partial=3) which gives the expected answer. I guess rollmean is ignoring the partial parameter (for speed?) but if so, it would be nicer to give an error. |