[R] error with scan

2005-07-26 Thread Jean-Pierre Gattuso
Hi: I am trying to read a large (50+ lines) with scan() as read.table is unable to read it. I get a strange error (below) which says that 'a real' was expected and '5' was read. Can someone help? Thanks, jp type=list(a=0,b=0,c=0,d=0,e=0,f=,g=0,h=0,i=0) tmp2 - scan(file=tmp2.txt,

Re: [R] error with scan

2005-07-26 Thread Kevin Bartz
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Pierre Gattuso Sent: Tuesday, July 26, 2005 11:52 AM To: r-help@stat.math.ethz.ch Cc: Jean-Pierre Gattuso Subject: [R] error with scan Hi: I am trying to read a large (50+ lines) with scan() as read.table is unable

[R] Error when scan()ning dead URL's

2004-11-15 Thread Jonathan Croft
Hi, I often scan web pages directly into R using scan('http://etc...','') however this gives an error if the page/url doesn't exist, or the connection to it is not available. Is it possible to still use scan but have R return something other than an error (which crashes code) when the page or

Re: [R] Error when scan()ning dead URL's

2004-11-15 Thread Peter Dalgaard
Jonathan Croft [EMAIL PROTECTED] writes: I often scan web pages directly into R using scan('http://etc...','') however this gives an error if the page/url doesn't exist, or the connection to it is not available. Is it possible to still use scan but have R return something other than an