.POSIXct() is awful and here's an example why : x <- .POSIXct(Inf) x #> [1] NA is.na(x) #> [1] FALSE #rstats
3
2
15
Replying to @antoine_fabri
Use `as.POSIXct()` and test via `is.finite()`: > x <- as.POSIXct(Inf) > x [1] "Inf" > is.na(x) [1] FALSE > is.finite(x) [1] FALSE > #rstats

Jul 18, 2022 · 1:34 PM UTC

1
4