Displaying 1 result from an estimated 1 matches for "littler_ex".
2007 Nov 17
1
littler usage
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