decimate: Decimate swiftly and ruthlessly

View source: R/decimate.R

decimateR Documentation

Decimate swiftly and ruthlessly

Description

Reduce the resolution of a raster by ruthless decimation.

Usage

decimate(x, dec = 10)

Arguments

x

raster object (single layer).

dec

decimation factor, raw multiplier for the resolution of the output

Details

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

Value

raster layer

Examples

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

tabularaster documentation built on Nov. 2, 2023, 5:14 p.m.