gustavobio / flora

R package (including shiny web app) for interacting with the Brazilian Flora Checklist. All data included.
29 stars 10 forks source link

Information on vegetation type #3

Closed Alectoria closed 7 years ago

Alectoria commented 8 years ago

Hi Gustavo,

I've noticed on the Flora do Brazil 2020 homepage, that vegetation is displayed for every species ('Tipo de Vegetação'). For example, for 'Miconia albicans', you would get "Área Antrópica, Campinarana, Campo Rupestre, Carrasco, Cerrado (lato sensu), Floresta Estacional Semidecidual, Restinga, Savana Amazônica"

Is it possible to access this information from your package?

Thanks for all the effort with this nice package!

gustavobio commented 8 years ago

Hi Viktoria, thanks for bringing this up. If I recall correctly, there is a function I introduced in one of the latest commits that might do this: get_domains. I can't be sure now because flora do brasil is down for me and they don't distribute this info in the provided DWC files. You have to scrape the page for it. I'll take a look into it as soon as it's back up. Cheers!

gustavobio commented 8 years ago

Okay so now you can grab the info you want with get_vegtype(). You have to install the package from github to see the new function. Thanks again.

Alectoria commented 8 years ago

Thanks a lot Gustavo! Very exciting! - Server seems to be down right now. Will try it out once it is up, again.