[R] Creating an environment for a function.

Rolf Turner rolf at math.unb.ca
Thu Apr 13 22:09:08 CEST 2006


Thomas Lumley wrote:

>          foo <- local({
>                        n <- 4
>                        function(x) {x^n}
>                      })

Bewdy! Thanks a lot.  Slowly but slowly ( :-) ) I learn things!

			cheers,

				Rolf




More information about the R-help mailing list