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
t; > [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Tyner > > Sent: Tuesday, June 26, 2007 9:59 AM > > To: r-devel@r-project.org > > Subject: [Rd] possible bug in 'scan' > > > > R-devel, > > > > When I run the following code on the attached fi

Re: [Rd] possible bug in 'scan'

2007-06-26 Thread Greg Snow
ain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Tyner > Sent: Tuesday, June 26, 2007 9:59 AM > To: r-devel@r-project.org > Subject: [Rd] possible bug in 'scan'

[Rd] possible bug in 'scan'

2007-06-26 Thread Benjamin Tyner
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 should be a numeric as specified by 'what' sessionInfo() R