Skip to contents

Is the string input a full Latin organism name?

Usage

isOrganism(x, nullOk = FALSE)

Arguments

x

Object.

nullOk

logical(1). If set to TRUE, x may also be NULL.

Value

TRUE on success; FALSE on failure, with cause set.

Details

The binomial system of naming species uses Latin words. Each name has two parts, the genus and the species. For example, human beings belong to the genus Homo, and our species is sapiens -- so the scientific name is Homo sapiens.

Note

Updated 2023-12-04.

Examples

## TRUE ====
isOrganism("Homo sapiens")
#> [1] TRUE
isOrganism("Canis lupus familiaris")
#> [1] TRUE

## FALSE ====
isOrganism("Human")
#> [1] FALSE
isOrganism("homo_sapiens")
#> [1] FALSE