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

bd_retrieve_by_search output #112

Open
leandronascimentolemos opened this issue Nov 21, 2019 · 2 comments
Open

bd_retrieve_by_search output #112

leandronascimentolemos opened this issue Nov 21, 2019 · 2 comments

Comments

@leandronascimentolemos
Copy link

I have a question:

Is there any function to export the bd_retrieve_by_search output file in csv?

Thanks.

@katrinleinweber
Copy link
Collaborator

Hello Leandro & thanks for your interest in BacDiveR :-)

There is no such function built-in, sorry. Because the list-structure of datasets depends on which data they actually contain, I wasn't sure how best to approach a bacdive_to_csv function that would work in all cases. The BacDive team didn't include it in their examples, either.

Maybe tidyr and/or tibble contain a function for that? Or something from StackOverflow?

What should be possible in any case, however, is to extract the fields you are interested in into a new dataframe.

In both cases, afterwards, your use readr::write_..., or other R-native export functions.

I hope these pointers prove useful to you. Please do post the solution here, or feel free to send a PR to extend one the vignettes (.Rmd files).

Kind regards, and good luck!

Katrin

@katrinleinweber
Copy link
Collaborator

katrinleinweber commented Nov 22, 2019

I experimented a bit in dd126c4, but I'm always running into:

Error: No common type for taxonomy_name$data$data and references$data$data <data.frame< ID_reference: integer reference : character >>.

:-/

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

No branches or pull requests

2 participants