geo_filter: Filter to Intersecting Pieces

View source: R/filter.R

geo_filterR Documentation

Filter to Intersecting Pieces

Description

Filter to Intersecting Pieces

Usage

geo_filter(from, to, bool = FALSE, epsg = 3857)

Arguments

from

Required. sf dataframe. the geography to subset

to

Required. sf dataframe. the geography that from must intersect

bool

Optional, defaults to FALSE. Should this just return a logical vector?

epsg

numeric EPSG code to planarize to. Default is 3857.

Value

sf data frame or logical vector if bool == TRUE

Examples

## Not run: 
# Needs Census Bureau API
data(towns)
block <- create_block_table('NY', 'Rockland')
geo_filter(block, towns)

## End(Not run)

data(towns)
data(rockland)
sub <- geo_filter(rockland, towns)


geomander documentation built on April 16, 2023, 5:18 p.m.