I have several .csv files in a folder. I want to read them all once by using the command
library(data.table)
path <-path
list <- list.files(path,pattern="*.csv")
files <- paste(path,list,sep='/')
DT <- do.call(rbind, lapply(files, fread))
However, since the first column is a 12 digits number, data.table shows it in a scientific number way, like
5.43971221673e-313
How should I convert all the scientific numbers into normal integers?
Thanks a lot!
First edit: After I use the command
options("scipen"=100, "digits"=12)
It still shows the number like
5.43971221673e-313
Even after I applied the command
options(scipen=999)
It gives me back the number
0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000543971221673
And even 543971221673 is not the correct number, the correct one should be
110101001001
I was using data.frame to try to convert, it works.
a <- read.csv(files)
a[,1] <- as.character(a[,1])
But I would prefer to use data.table to make it fast.
Thank you guys!