Filter Points to a Region
Arguments
- pts
points with
sf
geometry to filter- shp
shp to filter to
- cond
geometry subset to reduce shp to
Examples
data(suffolk)
pts <- dots_points(suffolk, pop, divisor = 1000)
filter_pts(pts, suffolk, pop < 1000)
#> Simple feature collection with 4 features and 2 fields
#> Geometry type: POINT
#> Dimension: XY
#> Bounding box: xmin: -7911735 ymin: 5203450 xmax: -7911489 ymax: 5214521
#> Projected CRS: WGS 84 / Pseudo-Mercator
#> pop dots_type geometry
#> 1 1 pop POINT (-7911584 5203450)
#> 2 1 pop POINT (-7911632 5214521)
#> 3 1 pop POINT (-7911489 5209767)
#> 4 1 pop POINT (-7911735 5208844)