Why do dates at infinity look like NAs but act like dates? [duplicate]
This question already has an answer here: R `Inf` when it has class `Date` is printing `NA` 1 answer I was trying to figure out the best way to deal with Postgresql's ability to represent Infinity and -Infinity in their timestamps when using RPostgreSQL to bring data over into R. Along the way I found some strange behavior when trying to represent infinite dates in R. I can attempt to create a date at negative and positive infinity in the following manner: ❥ as.Date(-1/0, origin="1970-01-01") [1] NA ❥ as.Date(1/0, origin="1970-01-01") [1] NA They both appear to be NAs. However when comparing