Delving into the relationship between car weight and fuel efficiency using the built-in mtcars dataset in R.
The dataset itself has the info of 32 car models including their fuel consumption for example.
Key Vars: mpg: miles per gallon & wt: weight in 1000lbs
data(mtcars)
summary(mtcars[, c("mpg", "wt")])
## mpg wt ## Min. :10.40 Min. :1.513 ## 1st Qu.:15.43 1st Qu.:2.581 ## Median :19.20 Median :3.325 ## Mean :20.09 Mean :3.217 ## 3rd Qu.:22.80 3rd Qu.:3.610 ## Max. :33.90 Max. :5.424