Given vectors of longitudes, latitudes and values, this function
will summarize given values by spatial polygon using the FUN
and return
a dataframe with polygon IDs and summary values.
summarizeByPolygon(longitude, latitude, value, SPDF,
useBuffering = FALSE, FUN, varName = "summaryValue")
vector of longitudes
vector of latitudes
vector of values at the locations of interest
SpatialPolygonsDataFrame with polygons used for aggregating
passed to MazamaSpatialUtils::getSpatialData()
function to be applied while summarizing (e.g. mean, max, etc.)
variable name assigned to the summary variable
A dataframe with the same rows as `SPDF@data` but containing only two columns: `polygonID` and the summary value.