rfishbase
rfishbase copied to clipboard
validate_names returning NA
Hello,
I am using rfishbase version 3.1.9, rstudio version 4.1.1, and code that worked previously.
I am trying to validate species names. The first three lines of my dataframe (named "metadata") is as such:
SampleID Species Fish1 Paraplotosus albilabris Fish2 Paraplotosus albilabris Fish3 Pomacanthus annularis
This is the code I used #extract species name column and save it as "species"
species<-metadata$Species
#select only the unique species
unispp<-unique(species) unispp
#it works till here
#validate the names via rfishbase
vfish<-validate_names(unispp) vfish
the result is as such
vfish<-validate_names(unispp) vfish [1] NA NA NA
[4] NA NA NA
[7] NA NA NA
[10] NA NA NA
[13] NA NA "Chanos chanos"
[16] NA NA NA
[19] NA NA NA
[22] NA NA NA
[25] NA NA NA
[28] NA NA "Atherinomorus lacunosus" [31] NA NA NA
[34] NA NA NA
[37] NA NA NA
[40] NA NA NA
[43] NA NA NA
[46] NA NA NA
[49] NA NA NA
[52] NA NA NA
[55] NA NA NA
[58] NA NA NA
[61] NA NA NA
[64] NA NA NA
[67] NA NA NA
[70] NA
another example is when I try running the code from https://github.com/ropensci/rfishbase#building-a-species-list
fish <- validate_names(c("Oreochromis niloticus", "Salmo trutta")) fish [1] NA NA
my question is: why is validate_names() returning NA for most of the species in my dataframe? these names could be validated previously. How should I proceed?
Cheers!
I'm guessing this is the same issue as reported earlier (e.g. #225), please see advice in that thread about updating readr
and purging your old database
Hello @cboettig. Thanks so much! Sorry for not seeing the previous thread earlier. Cheers!