Re: [R] colClasses = "Date" in read.delim, how to pass date-format?

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Tue 19 Apr 2005 - 01:28:07 EST

On 4/18/05, Christoph Lehmann <christoph.lehmann@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Apr 19 01:36:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:15 EST