zonal_stats_poly: Zonal stats for each polygon feature

Description Usage Arguments Value Examples

View source: R/zonal_stats_poly.R

Description

Zonal stats for each polygon feature

Usage

1
2
zonal_stats_poly(fun, vpgo, ro, remove_na = T, return_df = F,
  out_path = F)

Arguments

fun

Function to apply to values in each polygon

vpgo

A sf polygon feature collection

ro

A raster::raster object

remove_na

Boolean, remove features with NA values?

out_path

Write object to this path

Value

A sf::sf object identical to the input polugon object with zonal statistics added or a dataframe of the zonal statistics.

Examples

1
# add example

Vizzuality/species-distribution-modelling documentation built on Oct. 31, 2019, 1:10 a.m.