[R] read.table problem

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Jul 10 20:10:36 CEST 2000


Rob Ewing wrote:

> ( As a total newbie to R ) I get this error when attempting to use
> read.table to read a data frame:
> 
> "Error in type.convert(x, na.strings, as.is) : null string encountered"
> 
> (Is there help documentation for the type.convert function ( I could not
> find it in the usual places)

The function type.convert(.) is defined inside read.table(.), so there
is no documentation.
But that is not your problem, I suppose.

> This does not always happen, but seems to occur when I am attempting to
> read data frames with more than a given number of rows.

Suggestion: Did you provide the right decimal seperator and field
seperator (as in the file to read in) to read.table(.)? Have a look into
?read.table.

If read.table(.) doesn't work, you might want to try scan(.).

Regards,
Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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