Skip to content
Prev 102291 / 398500 Next

Problem Reading from .txt

Bill,

It looks like you are having from some source a hard return in your string. 
When that hard return is in the middle of a number, R sees this as two 
numbers, not separated by a comma (,) and throws an error. Like this:
+ .3)
Error: syntax error in:
"c(13,12
.3"
When the hard return is next to a comma (,) it is valid R, so it passes.
In your case it might be around 990th character that the hard occurs.

However, the txt file you added had some additional hard returns so my 
observations might be wrong.

Kees
On Thursday 19 October 2006 15:06, Bill Wyatt wrote: