Skip to content

bug in read.table (PR#2764)

2 messages · Michael.Man@pfizer.com, Brian Ripley

#
Hi, there might be a bug in read.delim (also read.table) in R.1.6.2.  I
included the correct input done in R1.6.1 first, then the wrong input in
R1.6.2.  The discrepancies are highlighted in red.

Michael Man  


####### correct input in R1.6.1 ##########################
_              
platform i386-pc-mingw32
arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    1              
minor    6.1            
year     2002           
month    11             
day      01             
language R  

Browse[1]> jk2_read.delim(hd.file,sep="\t")
Browse[1]> jk2[4:6,]
  Wells    Drug Time Dose Animal.number Replicate
4    A4 Control                       2         a
5    A5 Control                       2         b
6    A6 Control                       2         c


##### bug below ######################
_              
platform i386-pc-mingw32
arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    1              
minor    6.2            
year     2003           
month    01             
day      10             
language R             

Browse[1]> jk2_read.delim(hd.file,sep="\t")
Browse[1]> jk2[4:6,1:6]
   AWells    Drug Time Dose Animal.number Replicate 
4      A4 Control                       2         a   
5       5 Control                       2         b   
6      A6 Control                       2         c 



LEGAL NOTICE\ Unless expressly stated otherwise, this message is... {{dropped}}
#
Without the file, how can we do anything about this?  My guess is that
this is a MacOS file, in which case the problem is PR#2469 which is long
solved.  Please try R-patched or a beta of R-1.7.0.
BUG FIXES

    o   The fix to PR#2396 broke read.table() on files with CR line
        endings. (PR#2469) Separate problem with this on Carbon Mac
        build fixed as well.

The other workaround is to use files in the native file format ....


BTW, `_' is deprecated, so please don't use it in postings, especially in 
the unreadable way shown here.
On Fri, 11 Apr 2003 Michael.Man@pfizer.com wrote: