search for: tejous

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

Did you mean: tedious
2006 Apr 13
4
Creating an environment for a function.
...could do attach(melvin) environment(foo) <- as.environment(2) This seems to work ... but it also seems unnecessarily convoluted. I could also do assign("f1",f1,envir=environment(foo)) assign("f2",f2,envir=environment(foo)) etc. after creating foo(), but this is tejous. I think I must be missing a point or three. As I said, I don't really grok environments. Given that what I want to do makes any kind of sense at all, can someone start me off in the right direction? cheers, Rolf Turner rolf at math.unb.ca