R/taxon_id.R
is_taxon_id.Rd
Check if an object is of the taxon_id class
is_taxon_id(x)
An object to test
x <- taxon_id(c('9606', '1386', '4890', '4345'), db = 'ncbi') is_taxon_id(x) #> [1] TRUE is_taxon_id(1:3) #> [1] FALSE