check_species_type: Check if a 'species_type' is valid.

View source: R/check_species_type.R

check_species_typeR Documentation

Check if a species_type is valid.

Description

Check if a species_type is valid. Will stop if not

Usage

check_species_type(species_type)

Arguments

species_type

a string. Can be "A", "C" or "I" depending on whether the extant clade is of anagenetic, cladogenetic or immigrant origin, respectively.

Details

The type of species:

  • "A": the extant clade is of anagenetic origin

  • "C": the extant clade is of cladogenetic origin

  • "I": the extant clade is of immigrant origin

A valid species_type ...

  • is numeric

  • has one element

  • the element has a whole-number value in range ⁠[1, 6]⁠

Value

nothing

Author(s)

Richèl J.C. Bilderbeek

See Also

Use species_type_to_str to convert a species_type to a string.

Examples

check_species_type("A")
check_species_type("C")
check_species_type("I")

joshwlambert/DAISIEmainland documentation built on July 14, 2024, 5:40 p.m.