I have a data frame with many rows (say 4 rows in the example below), and each row has a certain number of columns associated with it as below:
1 91 90 20
2 21 NA NA
3 20 20 NA
4 30 NA NA
The numbers 1,2,3 and 4 in the far left are row IDs. I need to extract the rows that contain more than one number across all associated columns. So what I would expect is:
1 91 90 20
3 20 20 NA
I have tried using "which" in combination with "lapply" but this just gives me TRUE or FALSE as output, whereas I need the actual values as above.