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
?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
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
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
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]]
__
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
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