I have created a file something like this:
> filesInside
Date Time
1 01:09:2013 10:35:49.997
2 01:09:2013 10:35:50.197
How could I possibly make a function using
as.POSIXct()
and I should be get something like this:
> as.POSIXct("2013-09-01 10:35:50")
[1] "2013-09-01 10:35:50 NZST"
How can I make it as a function?
My code so far:
DateTime <- as.POSIXct(paste(filesInside$Date, filesInside$Time), format="%Y%m%d %H%M%S")
Appreciate a bit of help please. Cheers