names_keep | R Documentation |
This is a modifier which will remove rows that don't contain values provided An alternavite is names_drop
names_keep(df, keep_names, keep_children = F)
df |
an ecotaxa-tsv style data frame |
keep_names |
character vector of which names to drop |
keep_children |
option to keep children of drop names |
Alex Barth
# keep only copepods:
copes_only <- ecopart_example |> mod_zoo(names_keep, keep_names = 'Copepoda',
keep_children = TRUE)
# Keep multiple labels:
rhiz <- ecopart_example |> mod_zoo(names_keep,
keep_names = c('Aulosphaeridae',
'Aulacanthidae'),
keep_children = TRUE)
# with a single zoo_df
cope_cast1_df <- ecopart_example$zoo_files$bats361_ctd1 |>
names_keep(keep_names = 'Copepoda',keep_children = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.