[R] spss-data import

Jonathan Baron baron at cattell.psych.upenn.edu
Sat Jun 9 18:43:16 CEST 2001

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
which can be abbreviated as e="T".

This can arise in many ways.  One way has to do with the
conversion of missing data.  If the conversion to ascii
substituted empty spaces or tabs for missing data, then
these will not be counted in the length of the row.  You
may need to edit the ascii file, replacing __ (double
space) with _NA_, for example.  Some spreadsheet programs
can help you do this, but you could also use an editor
such as Emacs.

In sum, the read.table() function really expects a table
with all rows the same length.  JOn
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

More information about the R-help mailing list