| as.cas | R Documentation |
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, verbose = getOption("verbose"))
x |
numeric vector, or character vector of CAS numbers missing the hyphens |
verbose |
logical; should a verbose output be printed on the console? |
character vector of valid CAS numbers
is.cas
x = c(58082, 123456, "hexenol")
as.cas(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.