I am trying to convert currency values from factor to numeric. The format is €110.5M €565K I was able to get rid of € sign, M and K letters but I also need to make the conversion as to show 110.5M=110.500.000
and 565K=565.000
. Is there a way that you can suggest?
value<-as.numeric(gsub("[€MK]", "", as.character(strength[1:18207,1])))
Data to be converted
€110.5M €565K
€77M €405K
€118.5M €290K