I\'m looking to extract the periods of time where a conditional is true. I\'m happy to use any packages in R to achieve this, but have provided the example below using