Re: [Rd] possible bug in 'scan'

2007-06-26 Thread Prof Brian Ripley
On Tue, 26 Jun 2007, Benjamin Tyner wrote: > R-devel, > > When I run the following code on the attached file, > > tmp <- scan("C:/temp.csv", > what=list("character","numeric"), > sep=",") > > Then tmp[[2]] is a character vector. My impression from the help file > is that it sho

Re: [Rd] possible bug in 'scan'

2007-06-26 Thread Dan Davison
Hi Ben, On Tue, Jun 26, 2007 at 11:58:35AM -0400, Benjamin Tyner wrote: > R-devel, > > When I run the following code on the attached file, > > tmp <- scan("C:/temp.csv", >what=list("character","numeric"), >sep=",") > > Then tmp[[2]] is a character vector. My impression f

Re: [Rd] possible bug in 'scan'

2007-06-26 Thread Benjamin Tyner
How embarrassing -- works like a charm. On 6/26/07, Greg Snow <[EMAIL PROTECTED]> wrote: > The what argument looks at what the elements are, not the word they say. > Try this: > > > tmp <- scan("C:/temp.csv", > > what=list("",0), > > sep=",") > > Hope this helps, > > -- > G

Re: [Rd] possible bug in 'scan'

2007-06-26 Thread Greg Snow
The what argument looks at what the elements are, not the word they say. Try this: > tmp <- scan("C:/temp.csv", > what=list("",0), > sep=",") Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-811