[R] Convert numeric to class
Xiyan Lon
xiyanlon at gmail.com
Mon Mar 21 16:50:28 CET 2005
On Mon, 21 Mar 2005 10:15:37 -0500, Liaw, Andy <andy_liaw at merck.com> wrote:
> The `frame' component of an rpart object should already be a data frame.
> You just need to make sure to assign them to components of ir.tr.iter, as,
> e.g.,
>
> ir.tr.iter[[j]] <- ir.tr[[j]]$frame
>
> BTW, why would you want to duplicate the data in `result'? You can easily
> get the `frame' component from ir.tr, so why store a separate copy?
>
> Andy
>
>
Thanks for your quick respons.
Because I want to make iteration for my classification, I want to see
what class/type (in this example, Species) was possible exits in my
iteration.
Best regrads
Xiyan Lon
More information about the R-help
mailing list