R/parseDollars.R

Defines functions parseDollars

Documented in parseDollars

parseDollars <- function(x, pattern='\\$|,', replacement='', ...){
    X <- gsub(pattern, replacement, x, ...)
    as.numeric(X)
}

Try the Ecfun package in your browser

Any scripts or data that you put into this service are public.

Ecfun documentation built on May 2, 2019, 6:53 p.m.