This will predict species from input of length and height. training data iris required packages shiny,rsconnect and an account in shinyapps.io runApp() and then publish that is slidify here
suman
se
This will predict species from input of length and height. training data iris required packages shiny,rsconnect and an account in shinyapps.io runApp() and then publish that is slidify here
some R code of server
library(rpart)
library(e1071)
## Warning: package 'e1071' was built under R version 3.4.1
library(caret)
## Warning: package 'caret' was built under R version 3.4.1
## Loading required package: lattice
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 3.4.1
c<-train(Species~.,method="rpart",data=iris)
newdata<-data.frame(Sepal.Length=c(sepal.length),Petal.Length=c(petal.length),Sepal.Width=c(sepal.width),Petal.Width=c(petal.width))
## Error in data.frame(Sepal.Length = c(sepal.length), Petal.Length = c(petal.length), : object 'sepal.length' not found
result <- as.vector(predict(c,newdata))
## Error in predict.train(c, newdata): object 'newdata' not found
User input length and width
Thank you