ropensci / taxa

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

`parse_tax_data` should be able to generate default column names #131

Closed zachary-foster closed 6 years ago

zachary-foster commented 6 years ago

If the input to class_key is unnamed, I see:

> obj <- parse_tax_data(my_data,
+                       class_cols = "org_class", 
+                       class_sep = ";",
+                       class_regex = "(.+)__(.+)",
+                       class_key = c("taxon_name", "info"))
 Show Traceback

 Rerun with Debug
 Error: Column 3 must be named