[R] How to prevent fix() from converting Dates into numeric

From: Christian Gold <c.gold_at_magnet.at>
Date: Fri, 07 Dec 2007 23:58:26 +0100

Dear list members

Here is a strange problem that I have had for a long time, without finding out how to solve it. Whenever I use fix() on a data.frame that contains Dates, these are converted to numerics. As shown by the very simple example:

a <- data.frame(var1 = 1, today = Sys.Date() ) a

Why is that? And can anything be done against it?

Many thanks for your help!


Christian Gold

R-help_at_r-project.org mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 07 Dec 2007 - 23:04:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Dec 2007 - 07:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.