[R] Outputing dataframe or vector from within a user defined function

From: Andrew Cox <apcoxapcox_at_yahoo.co.uk>
Date: Tue 20 Dec 2005 - 19:05:46 EST

I have written a user defined function that carries out a monte carlo simulation and outputs various stats. I would like to access and store the simulation data (a two column local variable) from outside the function I have written. How can I output the data from the function as new variable(not simply print it), accessible outside
the function?

I am probably going to find that this is really simple, yet I have not been able to find the answer in (usual places, manuals, 2 x Books and mailing lists)

Many Thanks
Andy Cox

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Dec 20 19:13:00 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:40 EST