Skip to content
Prev 59222 / 63421 Next

as.POSIXct.numeric change default of origin argument

On Sun, 6 Dec 2020, Jan Gorecki wrote:

            
I would also be in favor of this (and have been for years), mostly to make 
it consistent with the as.numeric() method. Same for "Date".

To support the latter, the "zoo" package provides a separate as.Date() 
generic that enables the as.Date.numeric() with different default.

The main argument of R Core against it is that it is too uncertain whether 
the origin is really 1970-01-01, e.g., when importing from Excel or SAS.

Best wishes,
Z