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)

hypertidy/tabularaster documentation built on Jan. 17, 2024, 2:48 p.m.