Replace a taxon name with another.

replace_taxa(input, output, x = NULL, col = NULL, path = NULL)

Arguments

input

A character string specifying an existing taxon name.

output

A character string specifying a replacement taxon name.

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.