[R] colClasses = "Date" in read.delim, how to pass date-format?
Gabor Grothendieck
ggrothendieck at gmail.com
Mon Apr 18 17:28:07 CEST 2005
On 4/18/05, Christoph Lehmann <christoph.lehmann at gmx.ch> wrote:
> Hi
> I have a huge data-set with one column being of type date.
> Of course I can import the data using this column as "factor" and then
> convert it later to dates, using:
>
> sws.bezuege$FaktDat <- dates(as.character(sws.bezuege$FaktDat),
> format = c(dates = "d.m.y"))
>
> But the conversion requires a huge amount of memory (and time),
> therefore I would like to use colClasses = c("Date"). My question is:
> since I have format = c(dates = "d.m.y"), how can I pass this option to
> read.delim(..., colClasses = c("Date")) ?
>
Check out:
http://tolstoy.newcastle.edu.au/R/help/05/02/12003.html
More information about the R-help
mailing list