Re: [R] Convert numeric to class

From: Xiyan Lon <xiyanlon_at_gmail.com>
Date: Tue 22 Mar 2005 - 02:50:28 EST

On Mon, 21 Mar 2005 10:15:37 -0500, Liaw, Andy <andy_liaw@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



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 Mar 22 02:56:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:51 EST