Complete a spatial join using a simple feature objects or an object and list
Source:R/st_join_ext.R
st_join_ext.Rd
Wrapper for sf::st_join()
that works with sf lists.
Arguments
- x
A
sf
,sfc
, orbbox
object.- y
An
sf
object with a column named "name" or a list of sf objects where all items in the list have a "name" column.- col
Column name used to convert y into a
sf
list if it is not already.- .id
Column name with the values that should be added as a column to the input
sf
object.- join
geometry predicate function; defaults to
NULL
, set tosf::st_intersects()
if y contains only POLYGON or MULTIPOLYGON objects orsf::st_nearest_feature()
if y contains other types.- ...
Additional parameters passed to
sf::st_join()