I have a question related to scoping. Suppose we have 2 functions:

f1 = function(i){i = 1}

f2 = function(n){ 
 i = length(n)
 f1(i)
}

In other words, I would like i=1 regardless of n. Is this possible without 
having f1 in the body of f2? Thanks in advance!

______________________________________________
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