I have to filter my dataframe in relation to particular condition. Better if the solution contemplates the use of dplyr.
i have a dataframe structure like this
sentId. B. label. partner. code
1. 2. 3. 4. 123
1. 2. 2. 4. 124
4. 2. 3. 8. 125
7. 3. 2. 7. 126
If the column label contains a particular value (for example, 3.), collect not only that Row but also all the Rows that have the same sentID and partner value of the previous one.
The expected results is this:
sentId. B. label. partner. code
1. 2. 3. 4. 123
1. 2. 2. 4. 124
4. 2. 3. 8. 125
