I have a 1:50 vector and I need to make a moving sum (equal to the moving average), ie in the case of the last 5 observations, the new vector would be c(sum(1:5), sum(2:6), sum(3:7), ..., sum(45:49), sum(46:50)) . The aggregate func...
asked by
17.12.2018 / 15:51