
Non-native species occurrence points, clipped and assigned to a bay segment
Source:R/anlz_fw_nonnative_obs.R
anlz_fw_nonnative_obs.RdNon-native species occurrence points, clipped and assigned to a bay segment
Usage
anlz_fw_nonnative_obs(
huc8_list = c("03100101", "03100201", "03100202", "03100203", "03100204", "03100205",
"03100206", "03100207", "03100208"),
fim_url =
"https://github.com/kflahertywalia/tb_fim_nonnatives/raw/refs/heads/main/Output/tb_fim_inv.RData",
min_yr = 2000
)Arguments
- huc8_list
chr vector of HUC8 codes, passed to
util_fw_fetch_nas- fim_url
chr string, FIM data URL, passed to
util_fw_fetch_fim- min_yr
integer, earliest year to include, defaults to
2000
Value
A data.frame with columns scientificName, commonName,
group, year, lon, lat, source, and
bay_segment (full segment name, e.g. "Old Tampa Bay"). Each
row is one occurrence point that fell within the AOI and a bay segment
Details
Combines util_fw_fetch_nas and
util_fw_fetch_fim, filters to yr >= min_yr and
non-missing coordinates, then clips to the aoi_shp boundary
and spatially joins each point to a bay_segment using
bayseg_shp's BAY_SEG_GP grouping. This is the shared,
network-heavy step behind anlz_fw_nonnative_abundance and
anlz_fw_nonnative_richness, computed once and passed to
both rather than letting each re-fetch.