[R] current env

Rafael A. Irizarry ririzarr at jhsph.edu
Tue Apr 6 04:29:13 CEST 2004


i want to do something like this:

f <- function(){
	data(iris)
}

and have f() not leave iris in the global env. i can see there is a env
argument in data() but i dont know what to send it so that it uses the
current environment and not the global env.

any help appriciated.

-r




More information about the R-help mailing list