R/Bleach_Currency.R

Defines functions Bleach_Currency

Bleach_Currency <- function(money) {
    require(stringr)
    currency <- gsub("\\$", "", currency)
    currency <- gsub("\\)","", currency)
    currency <- gsub("\\(","-", currency)
    currency <- gsub(",", "", currency)
    currency <- str_replace_all(currency, "[[:punct:]]", " ")
    currency <- as.numeric(currency)
}
hansthompson/data_bleaching_tools documentation built on May 17, 2019, 2:29 p.m.