From maechler at stat.math.ethz.ch  Fri Apr 16 18:44:22 2004
From: maechler at stat.math.ethz.ch (maechler@stat.math.ethz.ch)
Date: Fri Apr 16 18:44:28 2004
Subject: [Rd] as.Date with factor argument (PR#6779)
Message-ID: <20040416164422.2313A10495@slim.kubism.ku.dk>

>>>>> "J" == J R M Hosking <hosking@watson.ibm.com>
>>>>>     on Fri, 16 Apr 2004 18:15:20 +0200 (CEST) writes:

    J> Full_Name: J. R. M. Hosking
    J> Version: 1.9.0
    J> OS: WIndows 2000
    J> Submission from: (NULL) (129.34.20.23)


    >> f<-factor("2000-01-02")
    >> as.Date(f)
    J> Error in as.Date.default(f) : Don't know how to convert `x' to class "Date"

    J> Presumably as.Date.factor(f) should have the same effect as
    J> as.Date.character(as.character(f)), but that does not seem to be happening.

No, and the fact that it doesn't is  *definitely* not a bug.

It could pass as a (rather extravagant) wish at most.

Martin Maechler


[Rd] as.Date with factor argument (PR#6779)
maechler@stat.math.ethz.ch