Returns a logical vector the length of the input data
points. This checks if each point falls inside polygon
. Multiple
polygons are supported (e.g., multiple homes, or parks).
palms_in_polygon(data, polygons, collapse_var = NULL)
data | The data points. |
---|---|
polygons | The polygon feature. |
collapse_var | An optional parameter for aggragating polygons by a
variable. Essentially this dissolves the polygon layer by |
A logical vector the length of the input data points. If multiple polygons are present, an additional column will be returned for each.
data(list = c("palms", "home")) home.buffer <- palms_buffer(home, distance = 100) at_home <- palms_in_polygon(palms, home.buffer)