Description Usage Arguments Author(s) Examples
View source: R/apply_pts_by_poly.R
This function is a wrapper aroud the 'sptools::points_in_polygon' and applies a function 'f' to the variable 'var' of the 'spatialPointsDataFrame' 'points' object, by the polygons of 'spatialPolygonsDataFrame' 'polygons' object.
1 | apply_pts_by_poly(points, polygons, var, f, ...)
|
points |
a 'SpatialPointsDataFrame' object. |
polygons |
a 'SpatialPolygonsDataFrame' object. |
var |
the name of the variable of 'points' on which to apply the function 'f'. |
f |
the function to be applied. |
... |
arguments to passed in 'sptools::points_in_polygon' |
Marc Choisy
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.