Re: [Rd] Bug in read.table?

2010-11-16 Thread peter dalgaard
On Nov 16, 2010, at 02:59 , Ben Bolker wrote: > Ben Bolker gmail.com> writes: > >> >> Ben Bolker gmail.com> writes: >> >>> >>> >> >> Can simplify this still farther: >> >> a b'c >> d e'f >> g h'i > > This example file leads to duplicate lines. > Arguably it should have behavior analo

Re: [Rd] Bug in read.table?

2010-11-15 Thread Ben Bolker
Ben Bolker gmail.com> writes: > > Ben Bolker gmail.com> writes: > > > > > > >Can simplify this still farther: > > a b'c > d e'f > g h'i This example file leads to duplicate lines. Arguably it should have behavior analogous to: > scan(what="") 1: a b'c 3: d e'f 5: g h'i 7: Read 6 item

Re: [Rd] Bug in read.table?

2010-11-08 Thread Ben Bolker
Ben Bolker gmail.com> writes: > > Can simplify this still farther: a b'c d e'f g h'i > One of the first things that happens in read.table is that > the first few lines are read with readTableHead: > > lines <- .Internal(readTableHead(file, nlines, comment.char, >blank.lines.sk

Re: [Rd] Bug in read.table?

2010-11-07 Thread Ben Bolker
Ben Bolker gmail.com> writes: > > ija.csic.es> writes: > > > > > Thanks. Yes, quote="" solves the problem. > > > > I would never say, however, from the documentations, that this was causing > > the duplicate records. Rather, I would have expected some kind of > > warning/error message. > >

Re: [Rd] Bug in read.table?

2010-11-07 Thread Ben Bolker
ija.csic.es> writes: > > Thanks. Yes, quote="" solves the problem. > > I would never say, however, from the documentations, that this was causing > the duplicate records. Rather, I would have expected some kind of > warning/error message. > > And, yes, I knew that, through duplicate(), R solv

Re: [Rd] Bug in read.table?

2010-11-07 Thread jgarcia
Thanks. Yes, quote="" solves the problem. I would never say, however, from the documentations, that this was causing the duplicate records. Rather, I would have expected some kind of warning/error message. And, yes, I knew that, through duplicate(), R solves gracefully this specific problem. Just

Re: [Rd] Bug in read.table?

2010-11-07 Thread Tony Plate
The problem has to do with the quote characters in the data (R is probably interpreting the 'minutes' and 'seconds' as delimiter characters). With a smaller data file, I can reproduce the strange behavior. read.table() can read the data correctly if given quote="" to disable the interpretation

Re: [Rd] Bug in read.table?

2010-11-05 Thread Charles C. Berry
On Fri, 5 Nov 2010, jgar...@ija.csic.es wrote: Hi, I'm writting to this list as I'm puzzled about the behaviour of read.table(). It is hard to believe that there is a bug in this utils' function, but for my: R version 2.12.0 alpha (2010-09-28 r53056) I'm using scan and read.table to read a nu

[Rd] Bug in read.table?

2010-11-05 Thread jgarcia
Hi, I'm writting to this list as I'm puzzled about the behaviour of read.table(). It is hard to believe that there is a bug in this utils' function, but for my: R version 2.12.0 alpha (2010-09-28 r53056) I'm using scan and read.table to read a number of files, which are as: --- Project: Mu