Get Species Information
GetSpp.fn.Rd
Get Species Information
Arguments
- species
A vector of species names. The words can be separated using spaces or underscores. Full names are not required but they will increase the consistency of the results should partial matches return multiple matches.
- unident
A logical entry with the default value of
FALSE
, to match historical output that did not include unidentified groups.
Value
A data frame with the scientific name in the latin column and in the scientific_name column that has spaces replaced with underscores; common name in the common column and in the common_name column that has spaces replaced with underscores; species values used as input in the input column; and strata used to assess its status in the strata column.
See also
See
PullSpp.fn
for information on common and scientific names;
and GetStrata.fn
for the different stratifications.
Examples
GetSpp.fn(c("sablefish", "petrale"))
#> latin common common_name scientific_name input
#> 133 Anoplopoma fimbria sablefish sablefish Anoplopoma_fimbria sablefish
#> 74 Eopsetta jordani petrale sole petrale_sole Eopsetta_jordani petrale
#> strata
#> 133 sablefish
#> 74 coast
# Expect a warning because vermilion doesn't have an strata assigned to it
testthat::expect_warning(
GetSpp.fn(c("vermilion"))
)
# Dusky returns multiple entries
testthat::expect_warning(
GetSpp.fn(c("dusky"))
)