R-alpha: EOF in read.table() and count.fields()

Douglas Bates (bates@stat.wisc.edu)
Fri, 22 Nov 1996 08:52:45 -0600 (CST)


Message-Id: <m0vQwyD-000hhvC@franz.stat.wisc.edu>
Date: Fri, 22 Nov 1996 08:52:45 -0600 (CST)
From: Douglas Bates <bates@stat.wisc.edu>
To: R-testers <r-testers@stat.math.ethz.ch>
Subject: R-alpha: EOF in read.table() and count.fields()

-----BEGIN PGP SIGNED MESSAGE-----

I created a file in emacs and forgot to add a "\n" on the last
record.  read.table() didn't like that.  Even more surprising was the
result of count.fields() applied to it.  I'll try to look at it later
to decide what count.fields was counting in the last case.
 > hw <- read.table("/tmp/ttt")
 Error: all rows must have the same length
 > count.fields("/tmp/ttt")
  [1]          7          7          7          7          7          7
  [7]          7          7          7          7          7          7
 [13]          7          7          7          7          7          7
 [19]          7          7          7          7          7          7
 [25]          7          7          7          7          7          7
 [31]          7          7 1077306172

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMpW+IvlhK8qxY7CpAQFexgP7BArrFiYuO+ESOon34N8u0fidj7Y4dZV2
7cjdoEU/UxeqjhmSYfFV6/gfLpITJPHz223+16iBShLdqag9NtAbpvOiQ4tdPEtl
tt6zk8JLUWYkCCx3NJLiFI4QTt2/OHWHF/xkJ7D+F5dmmutkRwL8bnnLAv7iHTuT
oIEzjQ2bYjE=
=jk/e
-----END PGP SIGNATURE-----
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-