Sightings-per-unit-effort (SPUE) effort proxy, per H3 cell (R reference)
Source:R/taxon.R
calc_spue.RdPresence-only effort proxy: within the spatial footprint of a higher-order
"effort" taxon (e.g. all Cetacea, from multi-species surveys), the fraction
of records that are the target taxon. spue = n_num / n_den where the
denominator is every record of the effort subtree in the cell and the
numerator is the subset that are the target subtree. This is the pure-R
reference pinned to obis_spue_sql() by the package tests.
Arguments
- df
data frame of species-level records with columns
cell,aphiaid,records(as inocc_h3).- num_aphiaid
integer AphiaIDs of the target subtree (already resolved via
obis_taxon_children()).- den_aphiaid
integer AphiaIDs of the effort subtree (denominator).