Learn R Programming

priceR (version 0.1.6)

currency_to_numeric: Convert human readable currencies into numeric data

Description

Convert human readable currencies into numeric data

Usage

currency_to_numeric(currency_text)

Arguments

currency_text

Price or vector of prices

Value

A numeric vector

Examples

Run this code
# NOT RUN {
library(dplyr)
c("$134,345.05", "<U+00A3>22", "<U+00A5>30000") %>% currency_to_numeric()
# [1] 134345     22  30000
# }

Run the code above in your browser using DataLab