Remove a taxon, and the associated record, from a data frame.

remove_taxa(input, x = NULL, col = NULL, path = NULL)

Arguments

input

(character) A character string specifying the taxon to be removed.

x

(character vector or data frame) Data containing taxa to be removed.

col

(character) A character string specifying the column in x containing taxa names to be cleaned. NOTE: Don't use this argument if x is a vector of character strings.

path

(character) A character string specifying the path to taxa_map.csv.

Value

  • 1. An updated version of taxa_map.csv with removed taxa names.

  • 2. A data frame of taxa_map.csv with removed taxa names, if the path argument is supplied.