I have a (near) global raster of elevation data in WGS84 with a resolution of 0.00893153 x 0.00893153. I am trying to aggregate it to a resolution of 0.166667 x 0.166667 with the following:
fact = 0.166667/res(elevation_raster)[1]
aggregated <- aggregate(elevation_raster,fact=fact)
However, when I do res(aggregated)
I get [1] 0.1706799 0.1706799
where I would expect [1] 0.166667 0.166667
.
I'm confused as to why this is happening and can't find anything in the documentation which would suggest a reason for this discrepancy. Any ideas?