Powell, Jeff:

> I would like to be able to do something like the following:
> nms <- c("en1", "en2", "en3", ...)
> 
> for(i in nms) i <- new.env(parent = .GlobalEnv)

Try

  for(i in nms) assign(i, new.env(parent = .GlobalEnv))

-- 
Karl Ove Hufthammer

______________________________________________
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