...
If it gets too confusing, just coerce your POSIXlt objects to POSIXct
objects which don't have issues with odd lengths.

Thanks to Mark and Charlie, your messages have enlightened me and hopefully provided a solution for Alex, who was the one with the problem.

tdata$datetime<-as.POSIXct(strptime(paste(tdata$date,tdata$time,sep="-"),
 "%Y/%m/%d-%H:%M"))

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to