You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to run an older R script to download trait information from rfishbase. However, the code gives me an error which I don't really understand. Would be great to get some help here.
"specs" is a list of species names from freshwater fish in Germany.
merge results with traits from fishbase.org
specs<-all_specs_Germany$species ####get species list
specs<-gsub("_"," ", specs) #### modify species names
tmp<-fb_tbl("species") %>% ##### download traits from fishbase --> there are more traits available, but often duplicated with FE.info or low coverage
mutate(sci_name = paste(Genus, Species)) %>%
filter(sci_name %in% specs)
And the error:
tmp<-fb_tbl("species") %>% ##### download traits from fishbase --> there are more traits available, but often duplicated with FE.info or low coverage
mutate(sci_name = paste(Genus, Species)) %>%
filter(sci_name %in% specs)
Error in stop_bad_type():
! Result 1 must be a single string, not a list of length 2
Run rlang::last_trace() to see where the error occurred.
ANy idea how to solve this?
Best,
Martin
The text was updated successfully, but these errors were encountered:
Hi all,
I just tried to run an older R script to download trait information from rfishbase. However, the code gives me an error which I don't really understand. Would be great to get some help here.
"specs" is a list of species names from freshwater fish in Germany.
merge results with traits from fishbase.org
specs<-all_specs_Germany$species ####get species list
specs<-gsub("_"," ", specs) #### modify species names
tmp<-fb_tbl("species") %>% ##### download traits from fishbase --> there are more traits available, but often duplicated with FE.info or low coverage
mutate(sci_name = paste(Genus, Species)) %>%
filter(sci_name %in% specs)
And the error:
Error in
stop_bad_type()
:! Result 1 must be a single string, not a list of length 2
Run
rlang::last_trace()
to see where the error occurred.ANy idea how to solve this?
Best,
Martin
The text was updated successfully, but these errors were encountered: