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 Oct. 10, 2022, 1:06 a.m.