makeEDMtree {pinktoe} | R Documentation |
Merely constructs a tree (rpart) object.
makeEDMtree()
Constructs a particular tree using a given data frame and a list of variables (the ones in
edmnumswehave
. When transferring code between S and R sometimes tree objects
(in S) differ from their "equivalent" partners (rpart
objects) in R. Hence it is
useful to sometimes be able to recompute them for the particular package in question.
An object of class rpart
which is the made tree.
Useful for constructing an example
Guy P Nason
http://www.stats.bris.ac.uk/~magpn/Research/Pinktoe/Welcome.html
# # Build the tree after loading rpart library # library("rpart") data("mpincdf99") mpincdf99tree <- makeEDMtree()