search for: middlefunct

Displaying 1 result from an estimated 1 matches for "middlefunct".

2013 Jun 12
2
Functions within functions - environments
...know I should be looking in environments, and I have tried a lot, but it keeps on erroring. An easy version of the problem is as follows: innerfunction<-function() { print(paste(a, " from inner function")) print(paste(b, " from inner function")) setwd(wd) } middlefunction<-function() { b="b" print(paste(b, " from middle function")) innerfunction() } outerfunction<-function() { a="a" print(paste(a," from outer function")) middlefunction() } outerfunction() Here, R will tell me that the inn...