[R] saving a data.frame to \t files

2004-03-11 Thread Mihai Nica
Windows 2000, updated R and packages. could somebody please help with saving a data.frame with column names into \t text files for later importing in other programs? It seems an easy task, yet... it beats me. thanks, Mihai Nica Jackson State University [[alternative HTML

RE: [R] saving a data.frame to \t files

2004-03-11 Thread Andy Bunn
?write.table setwd(c:\\temp) myDF - data.frame(A = rnorm(100), B = rnorm(100)) write.table(myDF, file = myDF.dat, sep = \t, quote = F, row.names = F) HTH, Andy __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] saving a data.frame to \t files

2004-03-11 Thread Douglas Bates
Mihai Nica [EMAIL PROTECTED] writes: Windows 2000, updated R and packages. could somebody please help with saving a data.frame with column names into \t text files for later importing in other programs? It seems an easy task, yet... it beats me. See ?write.table You want to use

Re: [R] saving a data.frame to \t files

2004-03-11 Thread Uwe Ligges
Mihai Nica wrote: Windows 2000, updated R and packages. could somebody please help with saving a data.frame with column names into \t text files for later importing in other programs? It seems an easy task, yet... it beats me. It's in the R Data Import/Export manual and in the help file

[R] saving a data.frame to \t files

2004-03-11 Thread Mihai Nica
many thanks to everybody... indeed it was simple, and i should have found the answer myself, since i DID read the R Data Import/Export manual... maybe it's the age :-) Mihai Nica Jackson State University [[alternative HTML version deleted]] __

Re: [R] saving a data.frame to \t files

2004-03-11 Thread Spencer Graves
Maybe I don't understand your questions, but the documentation for write.table in S-Plus 2000, 6.2, and R 1.8.1 all mention a parameter sep. Will this fix your problem? hope this helps. spencer graves Mihai Nica wrote: Windows 2000, updated R and packages. could somebody

Re: [R] saving a data.frame to \t files

2004-03-11 Thread Philipp Pagel
could somebody please help with saving a data.frame with column names into \t text files for later importing in other programs? It seems an easy task, yet... it beats me. write.table(mydf, file=foo.tbl, sep=\t, col.names=T) Where mydf is your data frame. If you don't want quoting you