Math, asked by shakirainapure701, 1 year ago

in the mtcars dataset how many cars provide a mileage of less than 20 mpg?

Answers

Answered by dryomys
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