cnum-package: cnum: Working with Chinese Numerals

Description Warnings Note Author(s) See Also


This R package provides useful functions to work with Chinese numerals in R, such as conversion between Chinese numerals and Arabic numerals as well as detection and extraction of Chinese numerals in character objects and string.


This package supports conversion of numbers with absolute value not greater than 1e+18. Note that numbers in R are in double precision that carries approximately 16 significant digits. The conversion accuracy for numbers beyond this limit is therefore not guaranteed.


Due to technical limitation, R package documentation cannot contain any non-ASCII characters. Therefore, Chinese characters are represented in romanized Chinese pinyin in the documentation. Visit the GitHub page for examples in Chinese.


Elgar Teo (

See Also

GitHub page:

cnum documentation built on Jan. 13, 2021, 7:53 p.m.