cas_id_check: CAS number format check function

View source: R/utils.R

cas_id_checkR Documentation

CAS number format check function

Description

This function checks whether the CAS/CARN chemical identifier follows the anticipated format of XXXXXXX-YY-Z (i.e. 2-7 digits, 2 digits, and 1 digit, respectively).

Usage

cas_id_check(cas)

Arguments

cas

A character string, or vector of character strings, indicating CAS/CASRN number.

Value

Logical output (TRUE or FALSE) indicating whether the character string(s) provided match the anticipated format for a CAS/CASRN chemical identifier.


httk documentation built on June 8, 2025, 12:19 p.m.