prediction
This commit is contained in:
9
Prediction/1. tree.r
Normal file
9
Prediction/1. tree.r
Normal file
@@ -0,0 +1,9 @@
|
||||
install.packages("rpart")
|
||||
library(rpart)
|
||||
#x11()
|
||||
formula = Species~.
|
||||
iris.df=rpart(formula, data=iris)
|
||||
iris.df
|
||||
plot(iris.df)
|
||||
text(iris.df, use.n=T, cex=0.7)
|
||||
post(iris.df)
|
Reference in New Issue
Block a user