Skip to content
Prev 1376 / 63424 Next

scoping

On 26-Jun-98 Paul Gilbert wrote:
Could this be cross-posted?
If you just want to read in a number, I think it's a lot safer to read
the input as character data with "readline" and then coerce it to numeric.
I wrote a utility function called "read.and.check" which does this. It
also checks that the user input satisfies certain conditions (mode,
lower and upper limit for numeric data, or set of allowed values), looping
until it gets an acceptable answer. It's in the coda package, with a help page.

Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._