[Rd] (no subject)

2015-10-21 Thread Suharto Anggono Suharto Anggono via R-devel
-- > 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

Re: [Rd] Confusing print method for Inf dates

2015-10-21 Thread Joshua Ulrich
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

[Rd] Confusing print method for Inf dates

2015-10-21 Thread Hadley Wickham
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

Re: [Rd] rank(, ties.method="last")

2015-10-21 Thread Martin Maechler
> 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

Re: [Rd] rank(, ties.method="last")

2015-10-21 Thread Henric Winell
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) >