I am trying to use a csv generated from the Apple mobility reports, which can be found here.
Now everything works relatively fine, and I am able to get the .csv as intended, which looks something like this text:
csvtxt <- "geo_type,region,2020-01-14,2020-01-15,2020-01-16
country/region,Albania,50.1,100.2,75.3"
But when I fread it, the first line, which is unsurprisingly a column name line, is not recognized as so, even with the option check.names = FALSE that I found somewhere here but cannot find again.
library(data.table)
fread(csvtxt, check.names = FALSE)
# V1 V2 V3 V4 V5
#1: geo_type region 2020-01-14 2020-01-15 2020-01-16
#2: country/region Albania 50.1 100.2 75.3
Is there a way to get this data to import so that the column name line is recognized properly?