Description Usage Arguments Value Examples
View source: R/zonal_stats_poly.R
Zonal stats for each polygon feature
1 2 | zonal_stats_poly(fun, vpgo, ro, remove_na = T, return_df = F,
out_path = F)
|
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 |
A sf::sf object identical to the input polugon object with zonal statistics added or a dataframe of the zonal statistics.
1 | # add example
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.