June 2017
Beginner to intermediate
576 pages
15h 22m
English
It is much easier to look at a visual representation of a tree. So you will need to install rpart.plot (if you haven't already) so that you are able to view it.
We can see that the first rule corresponds to the primary rule (splitting on Gender), which was generated by the OneR package earlier in this chapter.
devtools::install_github("cran/rpart.plot") library(rpart.plot) rpart.plot(fit,cex=.75)
