Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Jason Rupert
This is awesome! Total continue to be amazed. Thanks again! --- On Thu, 7/16/09, Gabor Grothendieck wrote: > From: Gabor Grothendieck > Subject: Re: [R] Best way to replace :SS with :00 > To: "Jason Rupert" > Cc: R-help@r-project.org > Date: Thursday, July 16

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Gabor Grothendieck
PM" > > How would you propose handling that condition? > > I tried to use strsplit with items to split on, but no luck. > > Thank you again for all your help. > > > > > --- On Thu, 7/16/09, Steve Lianoglou wrote: > >> From: Steve Lianoglou >> Sub

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Don McKenzie
following format: > "HH:MM:00 AM" or "HH:MM:00 PM" > > How would you propose handling that condition? > > I tried to use strsplit with items to split on, but no luck. > > Thank you again for all your help. > > > > > --- On Thu, 7/16/09, S

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Jason Rupert
I tried to use strsplit with items to split on, but no luck. Thank you again for all your help. --- On Thu, 7/16/09, Steve Lianoglou wrote: > From: Steve Lianoglou > Subject: Re: [R] Best way to replace :SS with :00 > To: "Jason Rupert" > Cc: R-help@r-project

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread John Kane
It your times are chron objects then trunc(tt, "minutes") where tt are your times may do what you want. It truncated but that seems to be what you want. --- On Thu, 7/16/09, Jason Rupert wrote: > From: Jason Rupert > Subject: [R] Best way to replace :SS with :00 > To: R-help@r-project.or

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread Steve Lianoglou
Hi, Not sure if there is an R way to do this or a regular express way, but here is what I am trying to do. I've got lots of data where the format is HH:MM:SS, but I need to format it like HH:MM:00, i.e. round the second down to zero. What is the best way to do this? Probably not the be

Re: [R] Best way to replace :SS with :00

2009-07-16 Thread David Winsemius
Have you looked at the chron package? It has a trunc.times function: ??"times"# would have shown this to you And the help page appears to provide exactly what was requested. -puzzlement follows I did get somewhat unexpected results when I applied what seems to be the obvi