Skip to contents

Small function to return the taxo level and taxon name

Usage

taxo_return(
  kingdom,
  supergroup,
  division,
  class,
  order,
  family,
  genus,
  species
)

Arguments

species

Value

A named vector with 3 elements. The first level which is not NULL, the corresponding name or names and the taxo as a list

Examples


taxo_return("Eukaryota","S", "D", "C", "O", c("F", "F1"), NULL, NULL)
#> Error in taxo_return("Eukaryota", "S", "D", "C", "O", c("F", "F1"), NULL,     NULL): could not find function "taxo_return"
# $level
# [1] "family"
#
# $name
# [1] "F"  "F1"
#
# $kingdom
# [1] "Eukaryota"
#
# $supergroup
# [1] "S"
#
# $division
# [1] "D"
#
# $class
# [1] "C"
#
# $order
# [1] "O"
#
# $family
# [1] "F"  "F1"
#
# $genus
# NULL
#
# $species
# NULL