I need to create a date column and a time column from a date time field.
The structure of the data:
Date.Time: POSIXct, format: "2017-04-01 05:17:02" "2017-04-01 05:18:20" "2017-04-01 05:25:24" "2017-04-01 05:31:46" .. data:
I made this entry in R
hour_min <- format(as.POSIXct(strptime(FitFull$Date.Time,"%d/%m/%Y %H:%M",tz="",format = %H:%M)))
And got this error message:
Error: unexpected SPECIAL in "hour_min <- format(as.POSIXct(strptime(FitFull$Date.Time,"%d/%m/%Y %H:%M",tz="",format = %H:%"
Where can I go from here? "New R User"
Thanks for any help you can give me.