Re: [R] A weird observation from using read.table

2007-09-27 Thread Charles C. Berry
On Thu, 27 Sep 2007, Jun Ding wrote: > Hi Everyone, > > Recently I got puzzled by the function read.table, > even though I have used it for a long time. > > I have such a file (tmp.txt, 2 rows and 3 columns, > with a space among columns): > > 1 2'-PDE 4 > 2 3'-PDE 5 > > if I do: > a = read.table("

[R] A weird observation from using read.table

2007-09-27 Thread Jun Ding
Hi Everyone, Recently I got puzzled by the function read.table, even though I have used it for a long time. I have such a file (tmp.txt, 2 rows and 3 columns, with a space among columns): 1 2'-PDE 4 2 3'-PDE 5 if I do: a = read.table("tmp.txt", header = F, quote = "") a V1 V2 V3 1 1 2'

Re: [R] A weird observation from using read.table

2007-09-23 Thread Bartjoosen
Take a look at ?scan. There is an explanation for the doubling of the string Bart Jun Ding wrote: > > Hi Everyone, > > Recently I got puzzled by the function read.table, > even though I have used it for a long time. > > I have such a file (tmp.txt, 2 rows and 3 columns, > with a space am

[R] A weird observation from using read.table

2007-09-22 Thread Jun Ding
Hi Everyone, Recently I got puzzled by the function read.table, even though I have used it for a long time. I have such a file (tmp.txt, 2 rows and 3 columns, with a space among columns): 1 2'-PDE 4 2 3'-PDE 5 if I do: a = read.table("tmp.txt", header = F, quote = "") a V1 V2 V3 1 1 2'