Description Usage Arguments Value Examples
Test the vaidity of CAS. CAS must respect some rules:
only digit
cas must be 3 parts sep by "-"
1st part of 2 up to 7 digits
2nd of 2 digits
3rd of 1 (check digit)
the check digit must be equal to the last digit times 1, the preceding digit times 2, the preceding digit times 3 etc, ..., adding all these up and computing the sum modulo 10.
| 1 | check_cas(cas)
 | 
| cas | vector of characters | 
vector of boolean of same length than the cas parameter (TRUE if valid, FALSE if not)
| 1 | ## Not run: check_cas("64-17-5")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.