ra_aggregate: Function to create a lower resolution (aggregated) raster...

View source: R/ra_aggregate.R

ra_aggregateR Documentation

Function to create a lower resolution (aggregated) raster layer.

Description

Function to create a lower resolution (aggregated) raster layer.

Usage

ra_aggregate(ra, factor, fun = mean, na.rm = TRUE)

Arguments

ra

Raster object.

factor

Amount of aggregatation in number of cells or as a multiplier to decrease ra's current resolution.

fun

Summary function to for aggregatation.

na.rm

Should NAs be omited from the aggregatation?

Value

Raster object.

Author(s)

Stuart K. Grange

See Also

ra_disaggregate

Examples

## Not run: 

# Decrease a raster layer's resolution by five times
ra_countries_rough <- ra_aggregate(ra_countries, factor = 5)


## End(Not run)


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.