Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Apr 22 18:16:44 CEST 2004
You do need R 1.9.0 or later. On the other hand, `the manual' (which
manual) should only refer to as.Date in 1.9.0 or later. If you are
using R 1.9.0, something is wrong (as that code is run as part of the
(`or later' here means one of the r-patched or r-devel snapshots.)
On Thu, 22 Apr 2004, Lyden, Scott wrote:
> Hi. I'm sure this is a complete green-horn question. I apologize.
> I'm trying to use as.Date *exactly* as shown on p. 194 of the manual (code
> fragment and error message pasted below). Is there some kind of "include"
> or "import" statement that I need to issue? Thank you very much for saving
> what remains of my hair.
> > x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960")
> > z <- as.Date(x, "%d%b%Y")
> Error: couldn't find function "as.Date"
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help