[R] Lost in POSIX

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Tue Nov 23 10:14:03 CET 2010


Dimitri Shvorob wrote:
>> Nor would I call this much of an improvement in clarity... what about
>>     
> "min"? You want to know the minimum?
>
> LOL. (And apologies for the insensitivity). Thank you for help, Jeff. This
> works, but I am still curious to see a solution based on "trunc", if anyone
> can find it. 
>   
You mean like

trunc(df$t,units="mins")

?

See ?trunc.POSIXt for hints on arguments to "units" parameter...



More information about the R-help mailing list