Calculate long-term means from an input 'RasterStack' (or 'RasterBrick')
object. Ideally, the number of input layers should be divisable by the
supplied cycle.window
. For instance, if x
consists of monthly
layers, cycle.window
should be a multiple of 12.