View source: R/tcplCode2CASN.R
tcplCode2CASN | R Documentation |
tcplCode2CASN
takes a code and converts it CAS Registry Number.
tcplCode2CASN(code)
code |
Character of length 1, a chemical code |
The function checks for the validity of the CAS Registry Number. Also, the ToxCast data includes chemicals for which there is no CASRN. The convention for these chemicals is to give them a CASRN as NOCAS_chid; the code for these compounds is CNOCASchid. The function handles the NOCAS compounds as they are stored in the database, as shown in the example below.
A CAS Registry Number.
tcplCode2CASN("C80057")
tcplCode2CASN("C09812420") ## Invalid CASRN will give a warning
tcplCode2CASN("CNOCAS0015") ## The underscore is reinserted for NOCAS codes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.