Reduce the resolution of a raster by ruthless decimation.

decimate(x, dec = 10)

Arguments

x

raster object (single layer).

dec

decimation factor, raw multiplier for the resolution of the output

Value

raster layer

Details

This is fast, it's just fast extraction with no care taken for utility purposes when you need to reduce the detail.

Examples

library(raster)
plot(decimate(raster(volcano)))
contour(raster(volcano), add = TRUE)