Dear all,

I am using raster's projectRaster to project a raster of a categorical
variable to a grid of coarser resolution (which I specify using another
raster object as the 'to' parameter). Rather than assigning the new cells
the value originally found closest to their centers (i.e. the 'ngb' method),
I'd like to assign the new cells the value originally found most commonly
within them.

I understand that such a 'majority' method is currently not part of the
projectRaster command, but would welcome suggestions for an elegant
work-around or modification to the projectRaster code.

thanks, 

Pieter


	[[alternative HTML version deleted]]

