[R] weird to me interaction between time() and %%, %/%
Alistair Gray
aggray at paradise.net.nz
Wed Sep 1 01:51:44 CEST 2010
Steve,
thanks for the suggestion.
Alistair
On 01/09/10 11:20, Steve Taylor wrote:
> Yes it is a floating point problem. January 2005 is slightly less than 2005,
> although the gap is somewhat bigger than .Machine$double.eps
> time(junk) - 2005 # shows the gap is -2.2737e-13 for my machine
> Try something this:
> floor(time(junk) + 1e-10)
>
> — — — — — — — — — — — — — — — — —
> *Steve Taylor*
> Biostatistician
> Pacific Islands Families Study
> Faculty of Health and Environmental Sciences
> Auckland University of Technology
> — — — — — — — — — — — — — — — — —
More information about the R-help
mailing list