Skip to content

read.table() vs read.delim() any difference??

4 messages · Jan van der Laan, Peter Dalgaard, Rameswara Sashi Kiran Challa

#
read.delim calls read.table so any differences between the two are  
caused by differences in the default values of some of the parameters.  
Take a look at the help file ?read.table

read.table uses white space as separator; read.delim tabs
read.table uses " and ' as quotes; read.delim just "
etc.

Jan


Rameswara Sashi Kiran Challa <schalla at umail.iu.edu> schreef:
#
On May 4, 2012, at 08:16 , Rameswara Sashi Kiran Challa wrote:

            
This can't be answered in abstractum. However, all that read.delim does is to call read.table with a specific set of arguments, so you should be able to get the right result from 

read.table(......., header = TRUE, sep = "\t", quote = "\"", dec = ".", 
    fill = TRUE, comment.char = "")

So check that it works. If you are curious as to what is causing the difference, just knock out the arguments one by one.