taxonlookup icon indicating copy to clipboard operation
taxonlookup copied to clipboard

Higher-taxonomy lookup for TPL-known hybrids

Open rossmounce opened this issue 8 years ago • 2 comments

Not high-priority but...

I would like to be able to lookup the higher-level taxonomy of names that are Hybrids, that TPL has data for e.g. × Elyhordeum chatangensis (Roshev.) Tzvelev http://www.theplantlist.org/tpl1.1/record/kew-387028 (Accepted).

It seems like this should be possible, if TPL has data on the name

> plant_lookup_version_current()
[1] "1.1.1"
> lookup_table(c("Pinus","× Elyhordeum chatangensis"),missing_action="NA")
  genus   family   order       group
1 Pinus Pinaceae Pinales Gymnosperms
2     ×     <NA>    <NA>        <NA>
> lookup_table(c("Pinus","×Elyhordeum chatangensis"),missing_action="NA")
        genus   family   order       group
1       Pinus Pinaceae Pinales Gymnosperms
2 ×Elyhordeum     <NA>    <NA>        <NA>
> lookup_table(c("Pinus","Elyhordeum chatangensis"),missing_action="NA")
       genus   family   order       group
1      Pinus Pinaceae Pinales Gymnosperms
2 Elyhordeum     <NA>    <NA>        <NA>

Desired output/behaviour:

> lookup_table(c("Pinus","× Elyhordeum chatangensis"),missing_action="NA")
  genus   family   order       group
1 Pinus Pinaceae Pinales Gymnosperms
2 × Elyhordeum Poaceae Poales Angiosperms

rossmounce avatar Feb 05 '16 18:02 rossmounce