extract_polygon: Summarise spatial polygon data around sites,

View source: R/spatial_utilities.R

extract_polygonR Documentation

Summarise spatial polygon data around sites,

Description

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.

Usage

extract_polygon(my_points, location_column, my_buffer, my_shape, layers = NULL)

Arguments

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_points that specifies the names of each location. Can either be the column name or an integer that specifies it's column location.

my_buffer

The radius of a buffer around each point form which

my_shape

A SpatialPolygonsDataFrame object of a shape file you want to extract

layers

A character vector of column names from my_shape to summarise. Optional. If NULL, all numeric columns are summarised.


mfidino/uwinspatialtools documentation built on May 2, 2024, 8:12 a.m.