Re: [R] How to change the default Date format for write.csv function?

2009-12-28 Thread George . Zou
s > > "-MM-DD". I would like to have it formatted as "MM/DD/", but > could not find an easy way to do it.Here is the test code: > > d <- data.frame(ticker=c("IBM", "IBM"), date = as.Date(c("2009-12-03", > "2009-

Re: [R] How to change the default Date format for write.csv function?

2009-12-28 Thread George . Zou
", "IBM"), date = as.Date(c("2009-12-03", "2009-12-04")), price=c(120.00, 123.00)) write.csv(d, file="C:/temp/test.csv", row.names=FALSE) The test.csv generated looks like this: "ticker","date","price" "IBM",2009

[R] How to change the default Date format for write.csv function?

2009-12-28 Thread George . Zou
t;date","price" "IBM",2009-12-03,120 "IBM",2009-12-04,123 I would like to have the date fields in the CSV formatted as "MM/DD/". Is there any easy way to do this? Thanks in advance. George Zou The information contained in this e-mail, and any attac