Joins attributes from a polygon layer to point locations by
spatial overlay. Each point receives the attributes of the
polygon it falls within. Points outside all polygons receive
NA for the joined columns. Commonly used to attach natural
subregion, LUF zone, ownership, or watershed identifiers.
Arguments
- points
An
sfobject (point geometry).- polygons
An
sfpolygon layer with attributes to join.- cols
Character vector of column names from
polygonsto retain.NULL(default) retains all non-geometry columns.- ...
Additional arguments passed to
sf::st_join().