R/match.R
cc_match_ichthyo_by_taxon.RdRelates net-tow ichthyoplankton to CTD-bottle environmental measurements,
filtering the biological side to a taxon and all of its descendants. The
subtree is resolved with a recursive walk of taxon.parentNameUsageID over
the WoRMS authority. Supersedes the retired /itis_ichthyodata endpoint,
replacing the dead ITIS path regex with the WoRMS worms_id hierarchy.
cc_match_ichthyo_by_taxon(
worms_id,
env_var = "temperature",
life_stage = NULL,
date_min = NULL,
date_max = NULL,
depth_m_min = NULL,
depth_m_max = NULL,
max_dist_km = NULL,
max_time_hr = NULL,
relax_matching = FALSE,
join_method = c("nearest_time", "nearest_dist", "average"),
con = NULL,
version = "latest",
collect = TRUE,
return_sql = FALSE
)Integer vector of WoRMS taxonID(s); the match includes each
id and every descendant taxon.
Environmental measurement_type (default: "temperature").
Optional character vector restricting ichthyo.life_stage.
Optional date bounds on the tow start time.
Optional depth bounds (meters) on the bottle environmental observations.
Match tolerances. Default to 2 km / 6 hr, or
5 km / 72 hr when relax_matching = TRUE; an explicit value always wins.
Widen the default tolerances to 5 km / 72 hr.
Passed to
cc_match_bio_env().
See cc_match_bio_env().
if (FALSE) { # \dontrun{
# Engraulis (anchovies) — WoRMS taxonID 125620 — and all descendants
d <- cc_match_ichthyo_by_taxon(125620, env_var = "salinity")
} # }