numeral: Numeral class

View source: R/numeral.R

numeralR Documentation

Numeral class

Description

The numeral class extends the base numeric vectors with methods for printing them using UTF digits from other numeral systems.

Usage

numeral(x = numeric(), system = c("en", "ar", "bn", "fa", "my"))

Arguments

x

A numeric vector.

system

Two-letter language code of the desired numeral system; see details for a list of available systems. Default: "en".

Details

The following numeral systems are currently supported:

  • "en": Western Arabic numerals (the default display in base R)

  • "ar": Eastern Arabic numerals

  • "bn": Bengali numerals

  • "fa": Persian numerals

  • "my": Burmese numerals

Value

Vector of class numeral.

Examples

# Eastern Arabic numerals
numeral(1:10, "ar")

# Persian numerals
numeral(1:10, "fa")

joeroe/numerals documentation built on May 20, 2023, 4:24 a.m.