Hello,

I'd like to know if I can modify a constant value with a function.

Example :

a=4

f1<-function()
{a=3}

Of course, after the function f1() is executed , the value of a is
always 4.
I'd like the value returned is 3, like it is possible in C by doing *a=3


Thank you

nicolas

        [[alternative HTML version deleted]]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to