Re: [Rd] as.factor: changed behaviour for Date class

2006-05-03 Thread Spencer Graves
Have you received a reply to this post? I haven't seen one. > t9 <- 9:10 > class(t9) <- "Date" > t9 [1] "1970-01-10" "1970-01-11" > as.factor(t9) [1] 9 10 Levels: 9 10 I confirmed what you got with a slightly different example: > t9 <- 9:10 > class(t9) <- "Date" > t9

[Rd] as.factor: changed behaviour for Date class

2006-04-27 Thread Antonio, Fabio Di Narzo
Dear all, I have noticed a little change in the behaviour of as.factor from R-2.2.1 to R-2.3.0, and can't find it in the NEWS. In R-2.3.0: > times <- 1:5 > class(times) <- "Date" > as.factor(times) [1] 1 2 3 4 5 Levels: 1 2 3 4 5 In R-2.2.1: > as.factor(times) [1] 1970-01-02 1970-01-03 1970-01-04