ropensci / taxa

taxonomic classes for R
https://docs.ropensci.org/taxa
Other
48 stars 12 forks source link

Consider allowing columns in `taxmap` tables to be mapped to taxa #133

Open zachary-foster opened 6 years ago

zachary-foster commented 6 years ago

Currently, only rows of tables can be mapped to taxa by having a taxon_id column. Some packages (e.g. vegan) assume taxa are in columns. Its no big deal to t() the table, but it would be pretty cool if columns could be mapped to taxa as well. If all column names match taxon IDs, then taxa could automatically assume that taxa are mapped to columns. Would also allow for pair-wise matrices of taxon comparisons to be stored correctly.

Just an idea at the moment, not sure how this would work with the filter_* functions.