Description Usage Arguments Author(s) See Also Examples
This function attempts to determine a definitive AphiaID and TSN from various web services via some existing R packages including worrms, taxize and ritis.
It takes a species list with Scientific and Common names and performs checks in the following order:
Check scientific names for AphiaIDs using taxize, then worrms
Check scientific names for missing AphiaIDs using worrms
Use found AphiaIDs to look for the TSNs
Check scientific names for missing TSNs using ritis
Use found TSNs to look for the AphiaIDs
Check common names for missing AphiaIDs using taxize, then worrms
Check common names for missing AphiaIDs using worrms
Use found AphiaIDs to look for the missing TSNs
Check common names for missing TSNs using ritis
Use found TSNs to look for the missing AphiaIDs
In addition to all of the original fields, the returned data will include:
APHIAID
APHIAID_SRC - what data was used to find the Aphiaid value (e.g. scientific name, common name)
APHIAID_SVC - which service(s) provided the Aphiaid value (e.g. taxize, ritis, worrms)
APHIAID_DEFINITIVE - TRUE indicates a single, confident match with a service, FALSE indicates that either several potential matches were found, or that the matches were recognized as authoritative by the service
APHIAID_SPELLING - alternative spellings suggested for the APHIAID_SRC suggested by the service that found the APHIAID
TSN
TSN_SRC - what data was used to find the TSN value (e.g. scientific name, common name, APHIAID)
TSN_SVC - which service(s) provided the TSN value (e.g. taxize, ritis, worrms)
TSN_definitive - TRUE indicates a single, confident match with a service, FALSE indicates that either several potential matches were found, or that the matches were recognized as authoritative by the service
TSN_SPELLING - alternative spellings suggested for the TSN_SRC suggested by the service that found the TSN
ID_SRC - populated with the version of this script that was used to find a match
1 2 |
spec_list |
the dataframe containing information to be decoded to TSN and aphiaIDs |
sci_col |
the name of the column of the dataframe containing the scientific names |
comm_col |
the name of the column of the dataframe containing the common names |
sci_Filts |
default is |
comm_Filts |
default is
|
debug |
default is |
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other speciesCodes: assignDefinitive
,
cleanPrepareSpecList
,
do_ritis
, do_taxize
,
do_worrmsAphiaID
,
do_worrmsTSN
, do_worrms
1 2 3 4 5 6 7 8 9 10 | testData <- data.frame(
internals_codes = 1:7,
sci_names = c("OSMERUS MORDAX", "SELACHII (CHONDRICHTHYES) (CLASS)",
"LIPARIS SP.","OSTRACIONTIDAE (OSTRACIIDAE)",
"PHYLLODOCE SP.","SPIO SP.","DENTALIUM ENTALE"),
comm_names = c("SMELT", "CARTILAGINOUS FISHES",
"SEASNAILS (NS) LIP.SP.","TRUNKFISHES (NS)",
"POLYCHAETE","POLYCHAETE","TUSK SHELL")
)
getTaxaIDs(spec_list = testData, sci_col = "sci_names", comm_col = "comm_names")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.