Hi I want to give parameters for my function from the shell. I mean

I defined a function like these:

work1.R :

myfunc <- function(x,y) {

z = x + y
z
}

and now I want to use shell to give parameters like " ./work1.R (3,5) " to
get sum 8.

so what should I do?

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to