I have data where each row is data from a certain day of a cell culture batch. Only the rows for the last day of each cell culture has the information for product quality. Now I am trying to filter out batches based on product quality at the end of the culture but I want to select all the days of those cultures so that I can compare them throughout the culture time. In the example the filter gets me row 3 but is it possible to "go back" and select lines 1 and 2 as well based on the batch ID column?
Example:
Row number Batch ID Culture day pH Offline Product quality
1 Batch 1 0 7.2 NA
2 Batch 1 1 7.21 NA
3 Batch 1 2 7.15 23.5