I have a data frame with a column called "Revenue" its a char and its with this format "$34,391.92" I need to remove the "$" and the "," characters, but keep the "." an turn it into a numeric type
I have tried to take it one by one using the gsub
function but it replaces all the values with NA
data$Revenue <-as.numeric(gsub("$", "", data$Revenue))