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

get_taxa can't handle multiple ecolgroups #247

Open
hannahwauchope opened this issue Nov 4, 2020 · 0 comments
Open

get_taxa can't handle multiple ecolgroups #247

hannahwauchope opened this issue Nov 4, 2020 · 0 comments

Comments

@hannahwauchope
Copy link

hannahwauchope commented Nov 4, 2020

Hi, I've just noticed a wee error in the get_taxa function. On line 73:

output <- do.call(rbind.data.frame, output)

It can't cope when multiple EcolGroups are listed (or multiple anything, but there only seems to be multiple ecol groups).

I've written a fix that just pastes multiple EcolGroups together into one string separated by an underscore (not sure if this is the most helpful for users?), but it works at least:

output <- do.call(rbind, lapply(1:length(output), function(x){
   Spec <- output[[x]]
   Spec$EcolGroups <- paste(Spec$EcolGroups, collapse="_")
   return(rbind.data.frame(Spec))
}))

Cheers, Hannah

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