Re: [R] A curious bug in read.xls

2008-06-10 Thread Peter Dalgaard
Alberto Monteiro wrote: > I found a curious bug in read.xls. I don't know if it's reproducible. > > It's like this: suppose I do a read.xls in a spreadsheet. A column > begins with a number. Then, any strings below it will be rendered as NA. > If the column begins with a string, then it will be ren

Re: [R] A curious bug in read.xls

2008-06-10 Thread Abhijit Dasgupta
I believe read.xls has a colClasses argument. If you import using read.xls(filename, colClasses='character') everything will be imported as a string, and you can re-convert after importing Alberto Monteiro wrote: I found a curious bug in read.xls. I don't know if it's reproducible. It's like

[R] A curious bug in read.xls

2008-06-10 Thread Alberto Monteiro
I found a curious bug in read.xls. I don't know if it's reproducible. It's like this: suppose I do a read.xls in a spreadsheet. A column begins with a number. Then, any strings below it will be rendered as NA. If the column begins with a string, then it will be rendered correctly. Alberto Monteir