Description Usage Arguments Examples
Returns an unpivoted table of variable values (factor levels) associated with each branch.
1 | rpart.subrules.table(object)
|
object |
an rpart object |
1 2 3 | library(rpart)
fit<-rpart(Reliability~.,data=car.test.frame)
rpart.subrules.table(fit)
|
Loading required package: rpart
Subrule Variable Value Less Greater
1 L1 Country Germany <NA> <NA>
2 L1 Country Korea <NA> <NA>
3 L1 Country Sweden <NA> <NA>
4 L1 Country USA <NA> <NA>
5 L2 Type Compact <NA> <NA>
6 L2 Type Large <NA> <NA>
7 L2 Type Medium <NA> <NA>
8 L2 Type Sporty <NA> <NA>
9 L3 Price <NA> 12822.5 <NA>
10 L4 Price 12302 <NA> 12302
11 R1 Country Japan <NA> <NA>
12 R1 Country Japan/USA <NA> <NA>
13 R1 Country Mexico <NA> <NA>
14 R2 Type Small <NA> <NA>
15 R2 Type Van <NA> <NA>
16 R3 Price 12822.5 <NA> 12822.5
17 R4 Price <NA> 12302 <NA>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.