--
> Henric Winell <[hidden email]>
> on Wed, 21 Oct 2015 13:43:02 +0200 writes:
> Den 2015-10-21 kl. 07:24, skrev Suharto Anggono Suharto Anggono via
R-devel:
>> Marius Hofert-4--
>>> Den 2015-10-09 kl. 12:14, skrev Martin Maech
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
> Henric Winell
> on Wed, 21 Oct 2015 13:43:02 +0200 writes:
> Den 2015-10-21 kl. 07:24, skrev Suharto Anggono Suharto Anggono via
R-devel:
>> Marius Hofert-4--
>>> Den 2015-10-09 kl. 12:14, skrev Martin Maechler:
>>> I think so: the code a
Den 2015-10-21 kl. 07:24, skrev Suharto Anggono Suharto Anggono via R-devel:
Marius Hofert-4--
Den 2015-10-09 kl. 12:14, skrev Martin Maechler:
I think so: the code above doesn't seem to do the right thing. Consider
the following example:
> x <- c(1, 1, 2, 3)
>