Description Usage Arguments Value Author(s)

View source: R/gs_zonal_raster.r

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

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

`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 |

`digits` |
numeric. Number of significant digits in zonal statistic output. |

`na.rm` |
logical. Defines whether to remove |

`...` |
Other variables |

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

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

gridsample documentation built on May 19, 2017, 8:45 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.