Re: [R] creating and populating an environment

2009-07-28 Thread Christian Prinoth
I have looked a bit more at this issue. Using new.env() I am able to put new vars into the new environment by using the env$... syntax. This allows to eliminate all variables in one step with rm(env), thus fixing problem 2) in my original mail. Problem 1) though is unsolved, or even worsened,

Re: [R] creating and populating an environment

2009-07-28 Thread Gabor Grothendieck
prepending with env$ seems not so terrible. Another form is: with(e, ...stmt...) or with(e, { ...stmt...; ...stmt...; ... }) where e is your environment. On Tue, Jul 28, 2009 at 3:59 AM, Christian Prinothchristian.prin...@epsilonsgr.it wrote: I have looked a bit more at this issue. Using

[R] creating and populating an environment

2009-07-27 Thread Christian Prinoth
Hi, I often work with R by writing long(ish) Excel-VBA macros interspersed with calls to R via RExcel. A typical example of this would be: Sub VBAMacro() 'fetch some data from an excel sheet 'do some basic stuff on said data 'transfer data from vba to R 'run some R

[R] creating and populating an environment

2009-07-27 Thread Christian Prinoth
Hi, I often work with R by writing long(ish) Excel-VBA macros interspersed with calls to R via RExcel. A typical example of this would be: Sub VBAMacro() 'fetch some data from an excel sheet 'do some basic stuff on said data 'transfer data from vba to R 'run some R