[R] readline() to vector

Jim Lemon bitwrit at ozemail.com.au
Sat Jan 19 11:16:23 CET 2002


Agustin Lobo wrote:

> ...My question is: how can I transform either "10,20,-10,50" or
> "c(10,20,-10,50)" into a numeric vector ?
>

This may sound like cheating, but I usually just ask for one value at a time, e.g.

Enter x-min -
Enter x-max -

and so on.

Jim

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list