I am reading a CSV with fread
(as it is quicker than read_csv
method), timestamp column is taken as character
type.
I want to convert it to POSIXct
with:
as.POSIXct(strptime(rawTime, "%Y-%m-%d %H:%M:%OS"))
But this POSIXct
call is very slow.
Is there any quicker alternatetive to this?