Skip to content
Prev 14284 / 398502 Next

Assignment of structures on a given environment

Hi,
Robert Gentleman wrote:

            
The list I'm building keeps a variety of information about some dataset!
Among other things the list keeps the dataset itself in the data frame R format.

As there are some huge datasets, I was wishing to avoid frequent copies of that
structure.

I've already pass that list as an argument and there seems to be no problem in
the execution. The only issue is that in very large datasets those frequent
copies could slow down the execution.

I've also stored this list in the Global environment, but as the program
produces also an output file with similar information I wouldn't like the idea
of leaving some "garbage" in the Global environment or making users manage some
global variable...... Ok, I can do 'rm', but if users do want to have access to
the produced list??
My idea was making the program  return some kind of pointer to the environment
where is the list at, which users would use if they want to access it.... I
thought that way it wouldn't be necessary any copies....

Well, I'm seeing that there is no much way around it....


    Thanks  again for the tips,

    Rita
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._