Here is a sample dataframe:
Col1 Col2 Col3
1 0 0
0 1 0
1 0 0
1 0 1
0 1 1
I want to return the following data frame:
Col1 Col2 Col3
1 0 1
0 1 1
That is, I want each row with more than one instance of "1"
I am having difficulty because when using the duplicated function, it is returning the instances where there are multiple values = 0, meaning that each row from the original data frame would be included in the new data frame (not what I want)