check_taxonGroups: Check taxonGroups object for errors

View source: R/check_taxonGroups.R

check_taxonGroupsR Documentation

Check taxonGroups object for errors

Description

Internal function to check taxonGroups object for errors.

Usage

check_taxonGroups(taxon_groups)

Arguments

taxon_groups

An object of class taxonGroups.

Details

Internal Claddis function. Nothing to see here. Carry on.

Value

An error message or empty vector if no errors found.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples


# Create a taxon groups object:
taxon_groups <- list(
  Group_A = c("Species_1", "Species_2", "Species_3"),
  Group_B = c("Species_3", "Species_4"),
  Group_C = c("Species_5", "Species_6", "Species_7", "Species_8")
)

# Check that this is a valid taxonGroups object (will return error message as class
# is not set):
check_taxonGroups(taxon_groups = taxon_groups)


graemetlloyd/Claddis documentation built on May 9, 2024, 8:07 a.m.