Create a logical Index Vector


hipriced_cars = p == 47.900

hipriced_car = cars[hipriced_cars, ]



Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/2HSU3GjJHgo/10557