[R] POSIXlt class and lapply

2019-02-14 Thread Newell, Paul
Dear R-helpers, We have recently upgraded from R-3.3.1 to R-3.5.2. It seems there has been a change in behaviour of `lapply` and the `POSIXlt` class that I cannot find explicitly documented. In R-3.3.1: > lapply(as.POSIXlt(Sys.Date()), length) $sec [1] 1 $min [1] 1 $hour [1] 1 $mday [1] 1 $mo

Re: [R] POSIXlt class and lapply

2019-02-15 Thread Newell, Paul
Many thanks Bill Dunlap. You are correct that `lapply` calls `as.list`, which I should have seen if I had looked a little harder. Whether that would have led me to locate `as.list.POSIXlt` is another matter. Best wishes. From: William Dunlap Sent: 14 February 2019 20:03 To: Newell, Paul Cc