Skip to contents

NCBI Taxonomy IDs of organisms

Usage

ncbi_taxid(name)

Arguments

name

Vector with any kind of organism name or identifier, can be also mixed type.

Value

Integer vector with NCBI Taxonomy IDs, NA if a name in the input could not be found.

Examples

ncbi_taxid(c("Homo sapiens", "cat", "dog"))
#> [1] 9606 9685 9615
# [1] 9606 9685 9615
ncbi_taxid(c(9606, "cat", "doggy"))
#> [1] 9606 9685   NA
# [1] 9606 9685   NA