Skip to content
Prev 12539 / 398502 Next

evaluating keystroke

David White <dwhite at ling.ohio-state.edu> writes:
Something like:

        comments <- vector(mode = "character")
        data(volcano)
        for(i in 1:(dim(volcano)[2] - 1))
          {
          plot(volcano[ ,i], volcano[ ,i+1], main = paste("Plot ", i))
          comments[i] <- readline("Comments : ")
          }

Should do the trick.

Mark


--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._