« first day (2213 days earlier)      last day (1072 days later) » 

6:33 AM
@zx8754 Why am I hearing about this function only now? Looks neat!
 
 
2 hours later…
8:06 AM
Can this come bite me in the ass down the road?
> is.na(NA)
[1] TRUE
> is.na(NaN)
[1] TRUE
Meaning, do you envision cases where any of these would become FALSE?
For convenience, I want to use is.na() because is.nan() doesn't appear to be working on data.frames the way is.na() does.
> xy <- data.frame(a = 1:3, b = 4:6, c = 7:9)
> xy[2, 2] <- NaN
> xy
  a   b c
1 1   4 7
2 2 NaN 8
3 3   6 9
> is.nan(xy)
Error in is.nan(xy) : default method not implemented for type 'list'
> is.na(xy)
         a     b     c
[1,] FALSE FALSE FALSE
[2,] FALSE  TRUE FALSE
[3,] FALSE FALSE FALSE
 
8:48 AM
@RomanLuštrik I might be wrong, but I think it is a recent addition, v4+
Hello
@RomanLuštrik I'd be safe and use the right function with loop: sapply(xy, is.nan) "murphy's law"
identical(sapply(xy, is.nan), is.na(xy))
# [1] TRUE
 
 
10 hours later…
7:20 PM
Made a fun graph in R using plotly which I then embeded into a markdown document which was converted to html using pelican. It represents gross pay in Slovenia for 2019.

https://biolitika.si/percentili-bruto-plac-2019-si.html
 

« first day (2213 days earlier)      last day (1072 days later) »