CAS_fix: Fix CAS numbers if they fail CAS_test

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ChemicalCuration.R

Description

This function uses basic string manipulation to split CAS numbers that have been converted to dates in excel. The CAS number should have failed CAS_test prior to fixing.

Usage

1
CAS_fix(CAS_RN)

Arguments

CAS_RN

Text string containing the CAS number to fix.

Value

Returns the fixed CAS number.

Author(s)

Emma Schymanski <emma.schymanski@uni.lu>

See Also

CAS_test.

Examples

1
2
3
4
CAS_fix("95-14-7")
CAS_fix("01.03.7440")
CAS_fix("1/12/5392")
CAS_fix("NotCASNumber")

schymane/RChemMass documentation built on Jan. 25, 2021, 5:45 a.m.