Learn R Programming

dots (version 0.0.2)

filter_pts: Filter Points to a Region

Description

Filter Points to a Region

Usage

filter_pts(pts, shp, cond = TRUE)

Value

tibble with sf geometries

Arguments

pts

points with sf geometry to filter

shp

shp to filter to

cond

geometry subset to reduce shp to

Examples

Run this code
data(suffolk)
pts <- dots_points(suffolk, pop, divisor = 1000)
filter_pts(pts, suffolk, pop < 1000)

Run the code above in your browser using DataLab