Given the following data.frames:
library(zoo)
A<-data.frame(x1=(0:9),x2=rep(0:1,5),x3=rep(0:4,2))
B<-apply(A, 2, function(x) rollapply(x, width = 2, FUN = sum, fill = NA, align = 'r', na.rm=TRUE))
C<-apply(A, 2, function(x) rollap...
asked by
01.02.2016 / 08:30