Open yutannihilation opened 2 years ago
I encountered this today 😅
I expect this comparison to be TRUE
library(hms)
a <- hms(0,0,0); a
#> 00:00:00
b <- "00:00:00"; b
#> [1] "00:00:00"
a == b
#> [1] FALSE
Created on 2023-03-24 with reprex v2.0.2
Specially because R like JS seems to coerce a lot and 3 == '3'
is TRUE
I feel the result of the comparison with strings is a bit cryptic...
Created on 2022-07-02 by the reprex package (v2.0.1)