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
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
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
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
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
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
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
7 matches
Mail list logo