rpart.plot package

Hi. I can not download rpart.plot package, any idea about how can I fix it? My rstudio version is 1.1.423
The error message says: Error in install.packages : object 'plot.rpart' not found

This is my code:
install.packages("rpart")
install.packages("rpart.plot")
library(rpart)
library(rpart.plot)

midata <- select(base, despp, legis, sexo, edad, ideologia, mandato)

ind <- sample(2, nrow(midata), replace=TRUE, prob =c(0.6, 0.4))
traindata <- midata [ind==1,] #Datos de entrenamiento
testdata <- midata [ind==2,] #Datos de test

arbolito <- rpart(despp ~ ., method = "class", data=traindata)

print.rpart(arbolito)
rpart.plot(arbolito, extra= 100)

printcp(arbolito)
plotcp(arbolito)

Thank you very much!

You are not giving us enough information to help you, please post the code you are using and the whole error message you are getting.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.