I have a dataset where each participant was asked to respond to a series of questions; some gave the same response to every question - I want to discard of these participants' data but not sure how to go about doing that.
I mean I could try filter/distinct but the problem I'm having is that there are approx 100 questions (so 100 columns) and I'm not sure what the syntax is to make R filter all of them.
Essentially my dataset looks like this
id q1 q2 q3 q4 q5
1 7 4 2 3 5
2 5 7 2 6 1
3 1 1 1 1 1
4 4 7 8 2 3
And after tidying it up, it should look like this
id q1 q2 q3 q4 q5
1 7 4 2 3 5
2 5 7 2 6 1
4 4 7 8 2 3
Any help is much appreciated!