cars<- read.csv("cars_data.csv")
Question 1
What is the average (mean) mpg for all cars?
cat(mean(cars$mpg))
20.09062
Question 2
What is the minimum mpg for all cars?
cat(min(cars$mpg))
10.4
Question 3
What is the maximum mpg for all cars?
cat(max(cars$mpg))
33.9
Question 4
How many cars are there in the dataset?
cat(length(cars$mpg))
32