View source: R/check_occ_range.R
check_occ_range | R Documentation |
The known range can be either a IUCN range, hand-delineated expert polygon or a QDS shapefile.
check_occ_range(range, occ_data)
range |
polygon defining the species range (can be an |
occ_data |
an |
The function creates three buffers around the range and identifies where a point is located based on the buffers (i.e., within the core range, or within a 5km, 10km, or 20km buffer). Four columns are added to the input data frame (core
, buff1
, buff2
, and buff3
) and are given a logical value depending on where the point is located (TRUE
if the point is in the core or buffers, FALSE
if it isn't).
The occ_data
input with four columns added (core
, buff1
, buff2
, and buff3
)
If a point is located beyond the 20km buffer then all of core
, buff1
, buff2
, and buff3
will be given the value FALSE
.
Dominic Henry
## Not run:
data <- check_occ_range(range, occ_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.