I'm new to R. I'm looking to remove duplicate rows in a data frame where df$x = "string"
AND the next row = the same string
so say I have this column
1. String - remove
2. String
3. A
4. A
5. A
6. String - remove
7. String - remove
8. String
9. A
10. A
The result I want would be
2. String
3. A
4. A
5. A
8. String
9. A
10. A