Format numbers as CAS numbers
This function attempts to format numeric (or character) vectors
as character vectors of CAS numbers. If they cannot be converted to CAS
format or don't pass is.cas
, NA
is returned
as.cas(x)
x |
numeric vector, or character vector of CAS numbers missing the hyphens |
character vector of valid CAS numbers
x = c(58082, 123456, "hexenol") as.cas(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.