The csv file I'm trying to read has exactly the following format :
Date,x,y
"2015/08/01","71,131","20,390"
"2015/08/02","81,599","23,273"
"2015/08/03","79,435","21,654"
"2015/08/04","80,733","20,924"
The separator is comma, but each value is also enclosed in quotes because of the comma that serves as a thousands separator. I tried read.csv
, read_csv
from {readr} and fread
from {data.table} and the best I can do is read all values is as strings and then use a combination of as.numeric
and gsub
to transform them into numbers.
I also found this: Most elegant way to load csv with point as thousands separator in R It is quite useful, but my data has a lot of columns (not all numeric) and I'd rather not specify column types.
Any ideas or should I start gsub-ing? On the fun side, Excel reads the file just fine :)