check-scalar-isOrganism: Is the string input a full Latin organism name?

check-scalar-isOrganismR Documentation

Is the string input a full Latin organism name?

Description

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.

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.

Value

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

Note

Updated 2023-12-04.

Examples

## TRUE ====
isOrganism("Homo sapiens")
isOrganism("Canis lupus familiaris")

## FALSE ====
isOrganism("Human")
isOrganism("homo_sapiens")

acidgenomics/goalie documentation built on Dec. 11, 2023, 11:36 p.m.