Hello all,
I am having a little trouble working with strptime and I was hoping
someone might be able to give me a hand. I have an instrument that outputs
an ordinal date and time in two columns something like this:
day.hour min.sec
1125252050
2125182029
3125242023
4
How about something like:
data$DateTime- strptime(paste(data$day.hour,data$min.sec,sep=
),format=%j%H %M%S)
data$Date - strftime(data$DateTime,format=%Y-%m-%d)
data$Time - strftime(data$DateTime,format=%H:%M:%S)
data
day.hour min.secDateTime Date Time
112517
2 matches
Mail list logo