s-news
[Top] [All Lists]

reading in dates in the header.

To: <s-news@lists.biostat.wustl.edu>
Subject: reading in dates in the header.
From: "Nagarajan, Venkatesh" <VNagarajan@tiaa-cref.org>
Date: Tue, 31 Oct 2006 14:19:53 -0700
Thread-index: Acb9Mk6smfd4mRPsS3SOHxOsYqj9bg==
Thread-topic: reading in dates in the header.

Input file

Test.csv

 

"row.names","7/31/1997","8/29/1997","9/30/1997"

"499963",1,2,3

"499964",4,5,6

"422891",10,11,12.2

 

Splus code

a = read.table("test.csv", sep=",", header=TRUE, row.names=1);

write.table(a, "a.csv", sep=",", dimnames.write=TRUE);

 

 

Output file

row.names,.7.31.1997.,.8.29.1997.,.9.30.1997.

"499963",1,2,3

"499964",4,5,6

"422891",10,11,12.2

 

What am I doing wrong here? Why are the dates not transferred properly to the output file?

 

Thanks

Venkat

 

 



**************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************
<Prev in Thread] Current Thread [Next in Thread>
  • reading in dates in the header., Nagarajan, Venkatesh <=