spss-data import
Hi Jon, Peter,
thanks for your immediate help. The command
allbus<-read.table("d:/tab.dat",sep="\t",dec=",")
works fine -- ok, I just took a part of the whole dataset.
BTW: I use SPSS 10.0... so read.spss won't work.
On 9 Jun 2001, at 12:43, Jonathan Baron wrote:
The second problem is the result of all rows not having
the
same length. My version of R usually tells me the lengths of the rows. If yours doesn't, you might try read.table(your_data,echo="TRUE") which can be abbreviated as e="T".
That's curious. 'My' read.table doesn't know the echo- argument (I use r1.2.3, win32). Have a look at the results of ?read.table: read.table(file, header = FALSE, sep = "", quote = "\"'", dec = ".", row.names, col.names, as.is = FALSE, na.strings = "NA", skip = 0, check.names = TRUE, fill = FALSE, strip.white = FALSE, blank.lines.skip = TRUE) Thanks again for your help, Bernd -- Bernd Wei? (bernd.weiss at epost.de) PGP Key ID: 0x4117206F PGP FP: 08B2 09CD 7192 526D 93FD 2070 53DB 7C4F 4117 206F www.pgpi.org -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._