Learn R Programming

tabularaster (version 0.7.2)

decimate: Decimate swiftly and ruthlessly

Description

Reduce the resolution of a raster by ruthless decimation.

Usage

decimate(x, dec = 10)

Value

raster layer

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.

Examples

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

Run the code above in your browser using DataLab