It would be nice to reuse the code for value to add an option like name_value that controls how each result is named.
It would work like this:
> ex_taxmap$supertaxa(subset = taxon_ranks == "species", value = "taxon_names", name_value = "taxon_ranks")
$`12`
genus family class
"Panthera" "Felidae" "Mammalia"
$`13`
genus family class
"Felis" "Felidae" "Mammalia"
...
This would allow for making mappings between any two variables in all_names()
Currently, results of functions like
supertaxa
return taxon information named by taxon id:...
It would be nice to reuse the code for
value
to add an option likename_value
that controls how each result is named.It would work like this:
...
This would allow for making mappings between any two variables in
all_names()