I have a whole column of numbers that include dot separators at the thousands and comma instead of dot as an dismal separator. When I try to create a numeric column out of t
You need to escape the "." in your regular expression, and you need to replace the commas with a "." before you can convert to numeric.
"."
> as.numeric(gsub(",", ".", gsub("\\.", "", var1))) [1] 50 72 960 1920 50 50 960