from_currency: Convert currency-formatted strings into numeric values

Description Usage Arguments Examples

Description

takes a vector of strings formatted as amounts of money ("$12,329.34") and reformats them as numeric values (12329.34).

Usage

1
from_currency(x, decimal_delim = ".")

Arguments

x

a vector of strings, formatted as money amounts. See to_currency.

decimal_delim

the character used to delimit the decimal amount. Set to "." by default.

Examples

1
2
from_currency("£1,249.34")
# [1] 1249.34

Ironholds/lucr documentation built on May 7, 2019, 6:40 a.m.