Take a data frame like mtcars (but much bigger)
I would like to get a list of observations where the value of vs==1 and the value of am != 1. I don't want to have to scroll through a long list of 1s and zeros, but actually get a list of the observations. I could write a loop but is there a more R'ish way of answering that question?
Additional information
My actual example is looking for values in first which are NA while in Grade they are not NA. And this does not seem to work. Does NA get treated special?
x = subset(spreadgrades, first == NA & Grade == NA)