Pop out taxa, that is, drop them
pop(.data, ...)
.data | Input, object of class |
---|---|
... | quoted rank names (e.g., family) via |
an object of the same class as passed in
supports Hierarchy
and hierarchies
objects
See filtering-helpers, including for more explanation of how this function works.
# With Hierarchy class object ex_hierarchy1#> <Hierarchy> #> no. taxon's: 3 #> Poaceae / family / 4479 #> Poa / genus / 4544 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 2 #> Poa / genus / 4544 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 2 #> Poa / genus / 4544 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 1 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 2 #> Poaceae / family / 4479 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 1 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 2 #> Poa / genus / 4544 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 1 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 1 #> Poa annua / species / 93036#> <Hierarchy> #> no. taxon's: 3 #> Poaceae / family / 4479 #> Poa / genus / 4544 #> Poa annua / species / 93036 #> <Hierarchy> #> no. taxon's: 3 #> Felidae / family / 9681 #> Puma / genus / 146712 #> Puma concolor / species / 9696 #> <Hierarchy> #> no. taxon's: 6 #> Chordata / phylum / 158852 #> Vertebrata / subphylum / 331030 #> Teleostei / class / 161105 #> Salmonidae / family / 161931 #> Salmo / genus / 161994 #> Salmo salar / species / 161996#> <Hierarchy> #> no. taxon's: 2 #> Poa / genus / 4544 #> Poa annua / species / 93036 #> <Hierarchy> #> no. taxon's: 2 #> Puma / genus / 146712 #> Puma concolor / species / 9696 #> <Hierarchy> #> no. taxon's: 5 #> Chordata / phylum / 158852 #> Vertebrata / subphylum / 331030 #> Teleostei / class / 161105 #> Salmo / genus / 161994 #> Salmo salar / species / 161996#> <Hierarchy> #> no. taxon's: 3 #> Poaceae / family / 4479 #> Poa / genus / 4544 #> Poa annua / species / 93036 #> <Hierarchy> #> no. taxon's: 3 #> Felidae / family / 9681 #> Puma / genus / 146712 #> Puma concolor / species / 9696 #> <Hierarchy> #> no. taxon's: 6 #> Chordata / phylum / 158852 #> Vertebrata / subphylum / 331030 #> Teleostei / class / 161105 #> Salmonidae / family / 161931 #> Salmo / genus / 161994 #> Salmo salar / species / 161996#> <Hierarchy> #> no. taxon's: 1 #> Poa annua / species / 93036 #> <Hierarchy> #> no. taxon's: 1 #> Puma concolor / species / 9696 #> <Hierarchy> #> no. taxon's: 4 #> Chordata / phylum / 158852 #> Vertebrata / subphylum / 331030 #> Teleostei / class / 161105 #> Salmo salar / species / 161996