check_occ_range: Check which occurrence points fall outside of known range

View source: R/check_occ_range.R

check_occ_rangeR Documentation

Check which occurrence points fall outside of known range

Description

The known range can be either a IUCN range, hand-delineated expert polygon or a QDS shapefile.

Usage

check_occ_range(range, occ_data)

Arguments

range

polygon defining the species range (can be an sf or sp object)

occ_data

an sf spatial data frame with occurrence points

Details

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).

Value

The occ_data input with four columns added (core, buff1, buff2, and buff3)

Note

If a point is located beyond the 20km buffer then all of core, buff1, buff2, and buff3 will be given the value FALSE.

Author(s)

Dominic Henry

Examples

## Not run: 
data <- check_occ_range(range, occ_data)

## End(Not run)

DomHenry/SDMutils documentation built on Feb. 6, 2024, 8:51 p.m.