The aim here is to read a csv table, and the file has a direct URL. I want to use fread (data.table package) because it is faster with read.csv, but I have a little problem.
options(scipen=999)
caracteristiques=read.csv(url("https://www.data.gouv.fr/s/resources/base-de-donnees-accidents-corporels-de-la-circulation/20160909-181230/caracteristiques_2015.csv"))
caracteristiques[1,1]
# 201500000001
I have to problem to get the [1,1] element.
Now I use fread:
library(data.table)
caracteristiques=data.table(fread("https://www.data.gouv.fr/s/resources/base-de-donnees-accidents-corporels-de-la-circulation/20160909-181230/caracteristiques_2015.csv",
sep=","))
caracteristiques[1,1]
#
Then we can see a with strange number. I have to specify options(scipen=0)
to show it 9.955423e-313
I am wondering if I have to specify some options in fread, since they are large numbers in the first column.