Learn R Programming

maidr (version 0.1.2)

prefix_to_currency_code: Convert Currency Prefix to ISO 4217 Code

Description

Maps common currency symbols to their ISO 4217 codes for use in JavaScript's Intl.NumberFormat.

Usage

prefix_to_currency_code(prefix)

Value

ISO 4217 currency code (e.g., "USD", "EUR", "GBP")

Arguments

prefix

Currency symbol (e.g., "$", the Euro sign, the Pound sign)