Recode Variable within Reoccurring 24 Hour Time Period

I have sensors installed that take data measurements four times per day (00:00, 06:00, 12:00, 18:00). I need to know days (24 hr period, starting at 00:00) when the value (being measured) is above/below the matrix (constant).

My current thought is this: if >1 of the four measurements during a 24 hour period (00,06,12,18) have a value equal to or below the matrix, the day's threshold is ‘below.' So if there is one below measurement the day is still labelled 'above.'

As shown below, I can recode threshold (above/below) based on value and matrix values for each measurement using the following code, but this doesn't satisfy the 'day' requirement.

practice$threshold <- ifelse(practice$value > practice$matrix, c("above"), c("below")) 

practice[205:228,]  

Row  DateTime           value   matrix   threshold
205 2018-08-11 00:00:00 0.186   0.18     above  
206 2018-08-11 06:00:00 0.185   0.18     above  
207 2018-08-11 12:00:00 0.184   0.18     above  
208 2018-08-11 18:00:00 0.184   0.18     above  
209 2018-08-12 00:00:00 0.184   0.18     above  
210 2018-08-12 06:00:00 0.183   0.18     above  
211 2018-08-12 12:00:00 0.182   0.18     above  
212 2018-08-12 18:00:00 0.182   0.18     above  
213 2018-08-13 00:00:00 0.182   0.18     above  
214 2018-08-13 06:00:00 0.182   0.18     above  
215 2018-08-13 12:00:00 0.180   0.18     below  
216 2018-08-13 18:00:00 0.180   0.18     below  
217 2018-08-14 00:00:00 0.182   0.18     above  
218 2018-08-14 06:00:00 0.182   0.18     above  
219 2018-08-14 12:00:00 0.180   0.18     below  
220 2018-08-14 18:00:00 0.181   0.18     above  
221 2018-08-15 00:00:00 0.182   0.18     above  
222 2018-08-15 06:00:00 0.182   0.18     above  
223 2018-08-15 12:00:00 0.180   0.18     below  
224 2018-08-15 18:00:00 0.180   0.18     below  
225 2018-08-16 00:00:00 0.182   0.18     above  
226 2018-08-16 06:00:00 0.181   0.18     above  
227 2018-08-16 12:00:00 0.180   0.18     below  
228 2018-08-16 18:00:00 0.180   0.18     below 

This is what I'm going for:

Row  DateTime           value   matrix   threshold
205 2018-08-11 00:00:00 0.186   0.18     above  
206 2018-08-11 06:00:00 0.185   0.18     above  
207 2018-08-11 12:00:00 0.184   0.18     above  
208 2018-08-11 18:00:00 0.184   0.18     above  
209 2018-08-12 00:00:00 0.184   0.18     above  
210 2018-08-12 06:00:00 0.183   0.18     above  
211 2018-08-12 12:00:00 0.182   0.18     above  
212 2018-08-12 18:00:00 0.182   0.18     above  
213 2018-08-13 00:00:00 0.182   0.18     below  
214 2018-08-13 06:00:00 0.182   0.18     below  
215 2018-08-13 12:00:00 0.180   0.18     below  
216 2018-08-13 18:00:00 0.180   0.18     below  
217 2018-08-14 00:00:00 0.182   0.18     above  
218 2018-08-14 06:00:00 0.182   0.18     above  
219 2018-08-14 12:00:00 0.180   0.18     above  
220 2018-08-14 18:00:00 0.181   0.18     above  
221 2018-08-15 00:00:00 0.182   0.18     below  
222 2018-08-15 06:00:00 0.182   0.18     below  
223 2018-08-15 12:00:00 0.180   0.18     below  
224 2018-08-15 18:00:00 0.180   0.18     below  
225 2018-08-16 00:00:00 0.182   0.18     below  
226 2018-08-16 06:00:00 0.181   0.18     below  
227 2018-08-16 12:00:00 0.180   0.18     below  
228 2018-08-16 18:00:00 0.180   0.18     below   

dataset