Hi,

I've been using r (the little, but sweet one!), and recently found out
about the magic argv vector of the rest of arguments passed to it.  How
can we process an argument that represents elements of a vector:

$ r littler_ex.R 14 '3, 2'
Error in ff * ss : non-numeric argument to binary operator

where:

,-----[ cat ~/scripts/R/littler_ex.R ]
| ff <- as.numeric(argv[1])
| ss <- c(argv[2])
| print(ff * ss)
`-----


Cheers,

-- 
Seb

_______________________________________________
R-SIG-Debian mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to