Skip to contents

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

Usage

make_final_presences(Long_LU_table, Long_Buffer_gbif, LookUpTable)

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.

Value

A data table with the filtered species presences. The returned data table includes the cell identifier and the corresponding species that can thrive in that cell based on the habitat suitability.