You can filter the mtcars data set using logical conditions like mtcars$mpg > 20 to include cars with mpg more significant than 20.