gs_zonal_raster: Zonal statistics calculator

Description Usage Arguments Value Author(s)

Description

This function calculates zonal statstics across a raster layer, for each polygon in a rasterized polygon layer.

Usage

1
gs_zonal_raster(x, z, stat = "mean", digits = 1, na.rm = TRUE, ...)

Arguments

x

Raster* layer. The layer that zonal statistics should be calculated from.

z

Raster* layer. A rasterized version of the zonal layer.

stat

character. Name of statistic used to calculate a value across each polygon in z. ex. "mean", "sum".

digits

numeric. Number of significant digits in zonal statistic output.

na.rm

logical. Defines whether to remove NA

...

Other variables

Value

Vector of values representing the calculated statistic for each polygon, sorted by the order of polygons in the polygon layer.

Author(s)

Forrest R. Stevens, forrest.stevens@louisville.edu


gridsample documentation built on May 1, 2019, 10:52 p.m.