Re: [Rd] as.Date without "origin"

2022-11-03 Thread Simon Urbanek
Dan, as.Date() and as.POSIXct() have been updated to allow replacement of the hidden functions .POSIXct() and .Date() which were the only way to correctly convert the numeric representation of the objects as Johannes explained. Given that this is a very common operation (especially with POSIXct

Re: [Rd] as.Date withoug "origin"

2022-11-03 Thread Therneau, Terry M., Ph.D. via R-devel
Add my name to those who think this is a good change. As someone who works daily with medical research data, the number of times I have been caugth by failure of statements like    as.Date(ifelse( is.na(prog.dt), lastfu.dt, prog.dt) is a large annoyance.    Replace ifelse by any number of selec