Re: [Rd] as.POSIXct behaviour

2017-03-08 Thread Suzen, Mehmet
On 9 March 2017 at 01:29, Arunkumar Srinivasan wrote: > The time info is lost on the first index as well. And it happens *silently*. Yes, because it assumes homogeneous format on the entire vector. You may want to do two passes with different formats or run a

[Rd] as.POSIXct behaviour

2017-03-08 Thread Arunkumar Srinivasan
Dear R-devel, I have tested the code below on R v3.3.2 and v3.3.3 on Mac and Windows. x <- c("2017-01-01 05:00:02", "2017-01-02 03 :M:00") # note the ‘ :M’ in 2nd value as.POSIXct(x) # [1] "2017-01-01 GMT" "2017-01-02 GMT” The time info is lost on the first index as well. And it happens