ropensci / taxa

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

filter_taxa errors when no taxa pass filter #116

Closed zachary-foster closed 6 years ago

zachary-foster commented 6 years ago
> filter_taxa(ex_taxmap, taxon_names == "not_a_taxon", subtaxa = TRUE)
 Show Traceback

 Rerun with Debug
 Error in `[<-.data.frame`(`*tmp*`, !self$edge_list$from %in% self$taxon_ids(),  : 
  replacement has 1 row, data has 0