MPG Prediction App A simple Shiny app to predict MPG from car features
2025-10-10
MPG Prediction App A simple Shiny app to predict MPG from car features
Users often want to quickly estimate fuel efficiency without building a model. Our app solves this problem.
library(shiny) model <- lm(mpg ~ cyl + hp, data = mtcars) predict(model, newdata = data.frame(cyl=6, hp=150))
## 1 ## 20.45191