Skip to content

Combines species presence-absence data with environmental predictors. It also calculates the centroid coordinates (x and y) for each hexagon.

Usage

h3sdm_data(pa_sf, predictors_sf)

Arguments

pa_sf

An sf object from the h3sdm_pa function containing species presence-absence data.

predictors_sf

An sf object from the h3sdm_pred function with environmental predictors.

Value

An sf object containing species, environmental, and spatial data.

Examples

# Assuming you have a species dataset (my_species_pa) and a predictor dataset (my_predictors)
# my_species_pa <- h3sdm_pa(...)
# my_predictors <- h3sdm_predictors(...)
# combined_data <- h3sdm_data(my_species_pa, my_predictors)