Re: [R] how to Store loop output from a function

2010-05-26 Thread Changbin Du
tree.pred <- yourfunction works! Thanks, Josh! On Wed, May 26, 2010 at 9:35 AM, Joshua Wiley wrote: > If you use return you need to assign the results to an object. For > instance > > tree.pred <- yourfunction > > then tree.pred will contain whatever data you returned from your > function.

Re: [R] how to Store loop output from a function

2010-05-26 Thread Joshua Wiley
If you use return you need to assign the results to an object. For instance tree.pred <- yourfunction then tree.pred will contain whatever data you returned from your function. If you truly want your function to assign objects internally that are available in your general workspace, instead of