I have file that has 4 columns, the first columns is the student name, second his final grade in Math, third is final grade in science,and the fourth column is final grade in art. the final grade is pass or fail. I want to keep only students who passed all subjects (i.e. has pass on all subjects). I read the data using read.csv in R, but I wasn't able to filter the data.
Col1 col2 col3 col4
Amanda pass fail pass
Mick pass pass pass
Andrew pass pass fail
Mark pass pass pass
form the example above, I need to keep only students who passed all like Mick and Mark