Yep that did the trick! I was sort stumbling along to this solution albeit
less efficiently. Thanks for your help!
Sam
On Tue, May 10, 2011 at 3:01 PM, Steven Kennedy wrote:
> How about something like:
>
> > data$DateTime<- strptime(paste(data$day.hour,data$min.sec,sep="
> "),format="%j%H %M%S"
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
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
3 matches
Mail list logo