Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with rfishbase fb_tbl() #279

Open
martinfriedrichsmanthey opened this issue Jun 27, 2024 · 0 comments
Open

Problem with rfishbase fb_tbl() #279

martinfriedrichsmanthey opened this issue Jun 27, 2024 · 0 comments

Comments

@martinfriedrichsmanthey

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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant