in the mtcars dataset how many cars provide a mileage of less than 20 mpg?
Answers
Answered by
1
In the mtcars dataset how many cars provide a mileage of less than 20 mpg?
Answer: mtcars data set can be found in R software.
To find the how many cars provide a mileage of less than 20 mpg, we can use the below syntax in R.
nrow(mtcars[mtcars$mpg<20,])
output: [1] 18
Therefore, there are 18 cars in mtcars data set with mileage less than 20 mpg
Similar questions