tandermann / iucnsim

iucnsim R-package
GNU General Public License v3.0
8 stars 0 forks source link

get_iucn_history function & get_iucn_status_data_and_species_list.R file - Issue with taxon group #3

Open bdarocag opened 2 years ago

bdarocag commented 2 years ago

The reference_group parameter and taxon_group in R file must contain any str method to convert the input character to uppercase, then when download procces is started the download will be done.

So, rigth now when you put 'Mammalia' instead of 'MAMMALIA' the process don't recognizes de indexation (selected_taxon_list = taxon_list[group_list==taxon_group]), so you get 'Character(0)' instead of list of selected taxon.

The first function is the starter process to get iucn history of reference group, here it produces an R file called 'get_iucn_status_data_and_species_list.R', inside it, you can see the process that the function do to get the iucn history, and here is the problem...

You can solve it putting any str function for ever convert the input 'Mammalia' into 'MAMMALIA' it's know as uppercase.

I'll hope be help