On Wed, Oct 21, 2015 at 4:57 PM, Hadley Wickham wrote:
> x <- as.Date(Inf, origin = "1970-01-01")
> x
> #> [1] NA
> str(x)
> #> Date[1:1], format: NA
> unclass(x)
> #> [1] Inf
>
> It's not clear what the correct behaviour is. The documentation for
> ?Date has: "It is intended that the date should
x <- as.Date(Inf, origin = "1970-01-01")
x
#> [1] NA
str(x)
#> Date[1:1], format: NA
unclass(x)
#> [1] Inf
It's not clear what the correct behaviour is. The documentation for
?Date has: "It is intended that the date should be an integer,", which
suggests that -Inf and Inf are not valid dates. But