Alternatively
correct.year <- floor(time(x)+1e-6)
On Sat, Oct 15, 2022 at 10:26 AM Andreï V. Kostyrka <
andrei.kosty...@gmail.com> wrote:
> Dear all,
>
>
>
> I was using stats::time to obtain the year as a floor of it, and
> encountered a problem: due to a rounding error (most likely due to its
Dear all,
I was using stats::time to obtain the year as a floor of it, and
encountered a problem: due to a rounding error (most likely due to its
reliance on the base::seq.int internally, but correct me if I am wrong),
the actual number corresponding to the beginning of a year X can still be
(X-
2 matches
Mail list logo