powered by
Filter Points to a Region
filter_pts(pts, shp, cond = TRUE)
tibble with sf geometries
sf
points with sf geometry to filter
shp to filter to
geometry subset to reduce shp to
data(suffolk) pts <- dots_points(suffolk, pop, divisor = 1000) filter_pts(pts, suffolk, pop < 1000)
Run the code above in your browser using DataLab