[S] Dates column in a data frame

Theresa Faus-Kessler (faus@gsf.de)
Fri, 3 Apr 98 11:20:42 MEZ


Dear S-Plus users,

I have a difficulty concerning the display of a dates column in a data frame
in S-Plus Version 3.3. If I display the dates column as a vector, the format
declared in the dates() function is kept, but as soon as I try to display
more columns, the dates column is converted to the Julian format:

> test.frame[,"Datum"]
[1] 25/07/94 08/08/94 22/08/94 05/09/94 19/09/94

> test.frame[,c("Datum","Pb")]
Datum Pb
12 12624 686
13 12638 647
14 12652 500
15 12666 645
16 12680 434

Neither does it help to declare the dates format explicitely and convert the
columns once more into a data frame:

> data.frame(dates(test.frame$Datum,format="d/m/y"),test.frame$Pb)
dates.test.frame.Datum..format....d.m.y.. test.frame.Pb
1 12624 686
2 12638 647
3 12652 500
4 12666 645
5 12680 434

I wonder if I have overlooked something. Can anybody give me advice?

Theresa.

Theresa Faus-Kessler
Arbeitsgruppe Biostatistik
Institut fuer Biomathematik und Biometrie
GSF-Forschungszentrum fuer Umwelt und Gesundheit
Neuherberg
Germany
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news