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.
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
HI, Dear R community,
I am writing the following function to create one data set(*tree.pred*) and
one vector(*valid.out*) from loops. Later, I want to use the data set from
this loop to plot curves. I have tried return, list, but I can not use the
*tree.pred* data and *valid.out* vector.
auc.t
3 matches
Mail list logo