View source: R/fct_spatial_join_tables.R
spatial_join_tables | R Documentation |
Perform a spatial inner join or left join operation on two layers based on largest intersection between spatial features. Spatial joins are performed using sf's st_join.
spatial_join_tables(f_left, f_right, j_type)
f_left |
left table in spatial joins - a spatial (sf) data frame. |
f_right |
Right table in spatial joins - a spatial (sf) data frame. |
j_type |
A character specifying the type of join to perform. Options for spatial joins include inner and left joins. |
Geometries of both spatial tables are checked for validity (using
sf's st_is_valid
)
and that they are not empty (using
sf's st_is_empty
).
Invalid geometries are dropped before performing spatial joins.
j_df
A layer of class - a spatial
(sf) data frame (i.e.
spatial features and attribute columns) returned by the spatial join.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.