I have a SQLite table containing a DATETIME column expressed in milliseconds since epoch. That is a 14 digits integer. I import the table into R with the following
require(DBI)
con <- dbConnect("SQLite", dbname = database)
query <- dbSendQuery(con, paste("SELECT * FROM ", table, ";", sep=""))
result <- fetch(query, n = -1, encoding="utf-8")
dbClearResult(query)
dbDisconnect(con)
return(result)
yet my column is imported as 32-bit integer column (up to 10 digits) with nefarious consequences.
How should I specify the target file type for the column?