From: Don Stierman (iowahawk89@yahoo.com)
Date: Fri 19 Apr 2002 - 01:14:09 EST
Message-id: <20020418151409.72689.qmail@web12706.mail.yahoo.com>
I have created a tree and want to save some of the
data so that I can create a html table from it.
I would like to save the output from data.ltr (see
example below) to a file, but haven't found a way to
do that, keeping the nice format that typing data.ltr
gives me (see output below). Is there a way to do
this?
Example:
library (maptree)
library (tree)
data<-read.csv("C:\\data.txt")
cnames<-colnames(data)
data$Vendor=as.factor(data$Vendor)
data$Yield=as.numeric(data$Yield)
data.ltr <- tree(Yield ~ ., data)
Output:
> data.ltr
node), split, n, deviance, yval
* denotes terminal node
1) root 22 18.590 1.1360
2) X0100.WAFER.START.SCRIBE.PROD:
1TAGG3,1TAHK2,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
17 3.059 0.7647
4) e.F: 0,2,5 6 1.333 0.3333 *
5) e.F: 1,3,4 11 0.000 1.0000 *
3) X0100.WAFER.START.SCRIBE.PROD: 1TAHL7,NA,NA,NA 5
5.200 2.4000 *
>
__________________________________________________
Do You Yahoo!?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:12 EST