View source: R/spatial_utilities.R
extract_polygon | R Documentation |
Given a set of locations and a spatial polygons layer, this function xtract the median value from spatial polygons that intersect a buffer around a site.
extract_polygon(my_points, location_column, my_buffer, my_shape, layers = NULL)
my_points |
a spatial points data.frame that contains the locations you wish to summarize landcover data at. |
location_column |
the name of the column in |
my_buffer |
The radius of a buffer around each point form which |
my_shape |
A |
layers |
A character vector of column names from my_shape to summarise. Optional. If NULL, all numeric columns are summarised. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.