Re: [R] Don't understand write.csv default: Why is column name for column of row names blank?

2007-10-31 Thread Gabor Grothendieck
Would this be good enough: # example using builtin BOD data frame write.csv(cbind(Z = row.names(BOD), BOD), row.names = FALSE) On Oct 31, 2007 7:04 PM, Earl F. Glynn [EMAIL PROTECTED] wrote: I've always been frustrated that R never puts a label on the column name for a column of row names.

Re: [R] Don't understand write.csv default: Why is column name for column of row names blank?

2007-10-31 Thread jim holtman
The nice thing about R is that you can always extend it in any manner that you want. Here is some code (that you could put in a function wrapper) that will do what you want. It just creates the header, writes it out, and then the dataframe itself without a column header: out -