nitter
Antoine Fabri
@antoine_fabri
18 Jul 2022
.POSIXct() is awful and here's an example why : x <- .POSIXct(Inf) x #> [1] NA
is.na
(x) #> [1] FALSE
#rstats
3
2
15
Dirk Eddelbuettel
@eddelbuettel
18 Jul 2022
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