clip_by_poly | R Documentation |
This function takes a dataframe and a polygon, and clips the dataframe using the the extent of the polygon. The polygon can be buffered as required to select nearby data as well.
clip_by_poly(
df = NULL,
lat.field = "LATITUDE",
lon.field = "LONGITUDE",
clip.poly = NULL,
buffer.m = NULL,
invert = F,
return.sf = T
)
df |
default is |
lat.field |
the default is |
lon.field |
the default is |
clip.poly |
default is |
buffer.m |
default is |
invert |
default is
However, if |
return.sf |
default is |
sf object
If the input polygon has no projection assigned, it will be assumed to be in Geographic, WGS84. FYI, during buffering, the polygon is briefly converted to UTMZone20 since the use of distances requires projecting the data.
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other general_use:
DDMMSS_to_DD()
,
DDMMx_to_DD()
,
aggregator()
,
combine_lists()
,
df_qc_spatial()
,
df_sf_to_gpkg()
,
df_to_sf()
,
drop_cols()
,
prepare_shape_fields()
,
subset_by_time()
,
updateCheck()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.