Say, I have a dataframe with three columns:
Year Sales Income
1 100 30
2 200 20
3 NA 10
4 300 50
5 NA -20
I want to get all the 'Year' that has a particular value in 'Sales', ignoring other columns. For example, if I ask for NA, I should get:
Year Sales
3 NA
5 NA
Please note there is no Income in the above data frame.