The problem is that: There is some rounding problems, for example Library(chron) any(times("4:00:01")==times("4:00:00")+times("00:00:01"))) False
But,it should be true ggrothendieck-2 wrote: > > On Thu, Nov 6, 2008 at 12:10 PM, tedzzx <[EMAIL PROTECTED]> wrote: >> >> Hi,all >> >> I only got the time data such as: >> tms<-c("19:30:23","18:39:10".....) >> >> I want to manipulate this time series data. For example, plus one >> second(or >> minute) or minus one second >> >> This data only has the time(h:m:s), without the date. I know that there >> are >> chron package, ISOPix class and the timeDate class, but all these class >> need >> the input of date. > > The chron package's times class does not have that restriction: > >> library(chron) >> times("10:34:21") > [1] 10:34:21 > > ______________________________________________ > 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. > > -- View this message in context: http://www.nabble.com/How-to-manipulate-the-time-data-without-the-date--tp20365370p20374110.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.