names_drop: Drop certain names from the ecotaxa dataframe

View source: R/gen_rename.R

names_dropR Documentation

Drop certain names from the ecotaxa dataframe

Description

This is a modifier which will remove rows which contain matching function values

Usage

names_drop(df, drop_names, drop_children = F)

Arguments

df

an ecotaxa-tsv style data frame

drop_names

character vector of which names to drop

drop_children

option to drop taxonomic children

Author(s)

Alex Barth

Examples

# Droping all not-living categories:
ecopart_example <- ecopart_example |> mod_zoo(func = names_drop,
                                              drop_names = 'not-living',
                                              drop_children = TRUE)

# Can be done with a single DF:
# Drop all artefacts
cast1_no_arte <- ecopart_example$zoo_files$bats361_ctd1 |> 
  names_drop('artefact',drop_children = TRUE)

TheAlexBarth/EcotaxaTools documentation built on Nov. 14, 2024, 8:27 p.m.