chinhungtseng / ChineseNumerals

ChineseNumerals R Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChineseNumerals

The goal of ChineseNumerals is to convert Arabic numerals to Chinese numerals.

Installation

You can install the released version of ChineseNumerals from github with:

devtools::install_github("chinhungtseng/ChineseNumerals")

Example

This is a basic example which shows you how to use this package:

library(ChineseNumerals)
## basic example code
  • Convert to upper chinese number
numeric2Chinese(12345, "upper")
#> [1] "壹萬貳仟參佰肆拾伍"
  • Convert to lower chinese number
numeric2Chinese(12345, "lower")
#> [1] "一萬二千三百四十五"

About

ChineseNumerals R Package

License:Other


Languages

Language:R 100.0%