Skip to content
Prev 24725 / 29559 Next

Incorrect month order in zApply function

Ben,
You're right about a mistake in my code but it is not use of ordered
function.  It is that I shouldn't have used the name argument.  Following
your example this is what I get:
# class       : RasterBrick
# dimensions  : 5, 5, 25, 12  (nrow, ncol, ncell, nlayers)
# resolution  : 72, 36  (x, y)
# extent      : -180, 180, -90, 90  (xmin, xmax, ymin, ymax)
# coord. ref. : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0
# data source : in memory
# names       : January, February, March, April, May, June, July, August,
September, October, November, December
# min values  :       1,        2,     3,     4,   5,    6,    7,
8,         9,      10,       11,       12
# max values  :       1,        2,     3,     4,   5,    6,    7,
8,         9,      10,       11,       12
#             : January, February, March, April, May, June, July, August,
September, October, November, December

Thanks for pointing out the mistake,
Vijay.
On Fri, Jul 29, 2016 at 7:17 PM, Ben Tupper <btupper at bigelow.org> wrote: