I have a dataset of 10min averages. I trying to filter out the data based on a set of conditions such as when 24-hour-Rolling Average is greater than a certain number and another column (wind direction) is between a certain range for any 12 or more hours (cumulative) over the rolling 24-hour averaging period. As shown below, I want 'Reportable Condition' to show 1 when we have PM_Condition and Wind_Condition satisfied for 12 or more hours in last 24 hours.
I have used dplyr's mutate function for PM_Condition and Wind_Condition. How can I filter data for Reportable conditon here?