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
Usage
as.cas(x, verbose = getOption("verbose"))Examples
x = c(58082, 123456, "hexenol")
as.cas(x)
#> 58082 123456 hexenol
#> "58-08-2" NA NA
