Re: [R] Arbirtrary column names with write.csv

2009-03-03 Thread Rafael Laboissiere
* Uwe Ligges [2009-03-03 15:27]: > Rafael Laboissiere wrote: >> Is there a way to prevent write.csv to transform the column names a la >> make.names? I mean, if I write the code: >> >> x <- structure (NULL) >> x [["a+b"]] <- c (1,2) >> write.csv (x, file = "foo.csv", row.names = FALS

Re: [R] Arbirtrary column names with write.csv

2009-03-03 Thread Uwe Ligges
Rafael Laboissiere wrote: Is there a way to prevent write.csv to transform the column names a la make.names? I mean, if I write the code: x <- structure (NULL) x [["a+b"]] <- c (1,2) write.csv (x, file = "foo.csv", row.names = FALSE, quote = FALSE) your x is not a data.frame, he

[R] Arbirtrary column names with write.csv

2009-03-03 Thread Rafael Laboissiere
Is there a way to prevent write.csv to transform the column names a la make.names? I mean, if I write the code: x <- structure (NULL) x [["a+b"]] <- c (1,2) write.csv (x, file = "foo.csv", row.names = FALSE, quote = FALSE) I get in foo.csv: a.b 1 2 but I want: a+b 1 2 Any suggest