[R] read.table: mysterious line omissions

Berend Hasselman bhh at xs4all.nl
Sun Dec 20 07:58:43 CET 2009



hedelhusk wrote:
> 
> Tried deleting several line above and below line 362; did that and changed
> the extension.  Still finds the same number of rows (362).
> 
> On Sun, Dec 20, 2009 at 12:19 AM, David Winsemius
> <dwinsemius at comcast.net>wrote:
> 
>>
>> On Dec 20, 2009, at 12:07 AM, David Winsemius wrote:
>>
> .....
> 

I have tried the same things you have tried. Same results.

But then I replaced the read.table(..., sep="\t") with this

temp <- as.matrix(read.delim('finalInput.csv', header=FALSE))

and got the expected result.

(I am running R2.10.1 patched on Mac OS X 10.6.2)

It would seem that  the sep="\t" in the read.table() call is misbehaving?

Berend
-- 
View this message in context: http://n4.nabble.com/read-table-mysterious-line-omissions-tp975620p975646.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list