Re: [Rd] as.POSIXct.numeric change default of origin argument

2020-12-06 Thread Gabor Grothendieck
For example, this works: library(zoo) as.Date(0) ## [1] "1970-01-01" On Sun, Dec 6, 2020 at 7:10 AM Achim Zeileis wrote: > > On Sun, 6 Dec 2020, Jan Gorecki wrote: > > > Hello all, > > > > I would like to propose to change the default value for "origin" > > argument in as.POSIXct.numeric m

Re: [Rd] as.POSIXct.numeric change default of origin argument

2020-12-06 Thread Achim Zeileis
On Sun, 6 Dec 2020, Jan Gorecki wrote: Hello all, I would like to propose to change the default value for "origin" argument in as.POSIXct.numeric method, from current missing to new "1970-01-01". My proposal is motivated by the fact that this is the most commonly needed value for "origin" argum

Re: [Rd] as.POSIXct.numeric change default of origin argument

2020-12-06 Thread Spencer Graves
The fda package already includes as.POSIXct1970, which also sets tz="GMT" by default. I made the equivalent thing for as.Date available as "Ecfun::as.Date1970". If the Core R team doesn't want to make the change for the existing functions, they might consider adding alternatives l

[Rd] as.POSIXct.numeric change default of origin argument

2020-12-06 Thread Jan Gorecki
Hello all, I would like to propose to change the default value for "origin" argument in as.POSIXct.numeric method, from current missing to new "1970-01-01". My proposal is motivated by the fact that this is the most commonly needed value for "origin" argument and having that as a default seems rea