Re: [R] passing parameters to an R script

2009-01-04 Thread Gabor Grothendieck
On Sat, Jan 3, 2009 at 1:32 PM, wrote: > I knowf R functions ca be called passing some parameters. > My first question is: how are parameters passed to R functions ? > Browsing through R archives I found an answer confirming taht parameters can > be passed to the called function by value. I wond

Re: [R] passing parameters to an R script

2009-01-04 Thread Henrik Bengtsson
On Sat, Jan 3, 2009 at 7:32 PM, wrote: > I knowf R functions ca be called passing some parameters. > My first question is: how are parameters passed to R functions ? > Browsing through R archives I found an answer confirming taht parameters can > be passed to the called function by value. I wond

Re: [R] R: passing parameters to an R script

2009-01-03 Thread jim holtman
io originale- > Da: jim holtman [mailto:jholt...@gmail.com] > Inviato: sab 03/01/2009 21.12 > A: mau...@alice.it > Cc: r-h...@stat.math.ethz.ch; r-help@r-project.org > Oggetto: Re: [R] passing parameters to an R script > > No you can not pass an address to a function. If you

[R] R: passing parameters to an R script

2009-01-03 Thread mauede
: mau...@alice.it Cc: r-h...@stat.math.ethz.ch; r-help@r-project.org Oggetto: Re: [R] passing parameters to an R script No you can not pass an address to a function. If you want to change the value of something, then return it as a value and assign it to the object so you can see what is going on. Mu

Re: [R] passing parameters to an R script

2009-01-03 Thread Stavros Macrakis
R's variable passing mechanism is not call by value, but a mixture of unevaluated arguments (like the obsolete Lisp FEXPR) and call-by-need. It is like FEXPR in that the function can capture the unevaluated argument (using 'substitute'). But it is like call-by-need in that normal use of the argum

Re: [R] passing parameters to an R script

2009-01-03 Thread jim holtman
No you can not pass an address to a function. If you want to change the value of something, then return it as a value and assign it to the object so you can see what is going on. Must be coming from the "C" environment where such things are allowed and lead to a number of problems. If you really

[R] passing parameters to an R script

2009-01-03 Thread mauede
I knowf R functions ca be called passing some parameters. My first question is: how are parameters passed to R functions ? Browsing through R archives I found an answer confirming taht parameters can be passed to the called function by value. I wonder whether passing the parameter address is po