
Filter Species Presences by Habitat Suitability
Source:R/generate_landuse_table.R
make_final_presences.RdThis function takes a long-format land-use table, a buffer data frame of species presences, and a lookup table to determine which species can thrive in which habitats. It filters the species presences to include only those cells that are both within the species' buffer zones and have suitable habitats according to the lookup table.
Arguments
- Long_LU_table
A long-format data frame containing land-use suitability data, as generated by
generate_long_landuse_table.- Long_Buffer_gbif
A data frame containing the buffer zones for species presences, typically generated earlier in the workflow.
- LookUpTable
A data frame containing the lookup table that maps species to suitable habitats.