From p.dalgaard at biostat.ku.dk  Wed Sep  8 19:19:29 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Wed Sep  8 19:19:55 2004
Subject: [Rd] A couple of issues with colClasses/setAs
In-Reply-To: <Pine.LNX.4.44.0409081744290.24881-100000@gannet.stats>
References: <Pine.LNX.4.44.0409081744290.24881-100000@gannet.stats>
Message-ID: <x24qm8r84e.fsf@biostat.ku.dk>

Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:

> > etc?  Or perhaps it is better with a catchall "Date-fmt", i.e., e.g.,
> > "Date-%Y%m%d"? That'd be fairly easy to code:
> > 
> > else if (length(grep("^Date-",colClasses[i])))  
> >         as.Date(data[[i]], sub("^Date-(.*)$","\\1", colClasses[i]))
> > 
> > although perhaps not so easy to document concisely.
> 
> Is it really so hard to convert such columns from character afterwards?

Couldn't that be said for all of the classes?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] A couple of issues with colClasses/setAs
Peter Dalgaard