ropensci / taxizedb

Tools for Working with Taxonomic SQL Databases
Other
30 stars 7 forks source link

taxizedb::name2taxid fails on duplicated names #21

Closed arendsee closed 6 years ago

arendsee commented 6 years ago

This dies horribly:

> name2taxid(c("pig", "pig")
Error in `levels<-`(`*tmp*`, value = if (nl == nL) as.character(labels) else paste0(labels,  : 
  factor level [2] is duplicated
arendsee commented 6 years ago

I'll fix this in a bit