Learn R Programming

priceR (version 1.0.2)

currency_to_numeric: Convert human readable currencies into numeric data

Description

Convert human readable currencies into numeric data

Usage

currency_to_numeric(currency_text)

Value

A numeric vector

Arguments

currency_text

Price or vector of prices

Examples

Run this code
library(dplyr)
c("$134,345.05", "£22", "¥30000") %>% currency_to_numeric()
# [1] 134345     22  30000

Run the code above in your browser using DataLab