Skip to contents

This function adds a new 'Name' column that is comprised of components from Kingdom, Phylum, Genus, and species, as well as the accession

This function adds a new 'Name' column that is comprised of components from Kingdom, Phylum, Genus, and species, as well as the accession

Usage

add_name(
  data,
  accnum_col = "AccNum",
  spec_col = "Species",
  lin_col = "Lineage",
  lin_sep = ">",
  out_col = "Name"
)

add_name(
  data,
  accnum_col = "AccNum",
  spec_col = "Species",
  lin_col = "Lineage",
  lin_sep = ">",
  out_col = "Name"
)

Arguments

data

Data to add name column to

accnum_col

Column containing accession numbers

spec_col

Column containing species

lin_col

Column containing lineage

lin_sep

Character separating lineage levels

out_col

Column that contains the new 'Name' derived from Species, Lineage, and AccNum info

Value

Original data with a 'Name' column

Original data with a 'Name' column

Author

Samuel Chen, Janani Ravi