[R] Simple question about export
Darryl
darryl.greig at hp.com
Wed Mar 12 14:57:19 CET 2003
If that is what you tried, then you didn't supply the object to the
write.table function.
e.g. if your data.frame is called mydata in R you need
write.table(mydata,"c:/foo/data.dat")
The file is ascii. Note also that you either have to use forward slashes (as
above) or double backslashes
write.table(mydata,"c:\\foo\\data.dat")
R doesn't do the expected thing with single backslashes as you wrote it.
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Michael Miettinen
Sent: 12 March 2003 15:13
To: R-help at stat.math.ethz.ch
Subject: [R] Simple question about export
Hi,
Sorry about making this stupid question, but I did not
find the answer from documentation.
I managed to read my spss .sav file into the R, no
problem. Next I would like to write this data to a
file in ascii-format. I tried to use write.table and I
got no error messages, but no file either. What is the
right way to make it?
At least write.table("c:\foo\data.dat") does not
work..
Thanks in advance!
Michael
=====
michael_miettinen at yahoo.com
+358 40 849 1140
__________________________________________________
Yahoo! Web Hosting - establish your business online
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list