Skip to contents

Test if a string is a lineage

Usage

is_lineage(string)

Arguments

string

string to be tested as lineage.

Value

A logical.

Details

Alphanumeric character, hyphen, dots, square brackets and non-consecutive underscores are allowed in clades names.

Examples

is_lineage("k__Bacteria|p__Firmicutes|c__Clostridia|o__Clostridiales")
#> [1] TRUE