Records and species by DwC rank column vs by AphiaID subtree
Source:R/compare.R
calc_rank_vs_subtree.RdFor each preset, counts records and species at the base resolution two
ways: filtering the Darwin Core rank column ("<rank>" = '<name>') and
filtering aphiaid by the recursive WoRMS subtree of the seed id. Where
WoRMS files the name at a rank other than the column (e.g. Actinopterygii is
a gigaclass; OBIS's class carries Teleostei), the rank column silently
returns zero while the subtree finds the records.
Usage
calc_rank_vs_subtree(con, presets = obis_rank_presets(), res = H3T_RES_BASE)Arguments
- con
connection from
obis_store_connect().- presets
data frame with
label,rank,name,aphiaid; defaultobis_rank_presets().- res
resolution tier of
occ_h3to count on (default the base, 7).