get_currency_character: Get the currency symbol

Description Usage Arguments Details

View source: R/utils.R

Description

The currency symbol is not always obvious, depending on the currency you are working with. The symbol for Costa Rican Colon, for instance may not display correctly or the same. It may have different appearances in the same R session, and cannot be included here because they lead to built errors.

Usage

1
get_currency_character(currency_value, currency_symbol_pos)

Arguments

currency_value

A single value from the currency column

currency_symbol_pos

The number of positions from the left for the currency symbol (include any spaces)

Details

To have a check in place you can request the first character of the currency strings with this function, and use it either to assign the currency value, or to do a sanity check.


junr documentation built on May 19, 2017, 1:30 p.m.

Search within the junr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.