I need to count the number of days between a date and the last day that precipitation was greater than 12
I have a set of data with precipitation totals (Precip) for every day. I collected data at multiple pools. I need to calculate the number of days it has been since the last time it raied >12mm. If it rained over 12mm that day then it get a ‘0’.
Re_order based on month and date while ignoring year in R
Lubridate doesn’t have a month-date col type it appears and I would like to make a histogram across several years that focuses just on the month and day while ignoring the year. But when it comes time to sort it will think 1-10 comes after 1-1 and so on. I’m sure there’s an easy fix to this but I can’t seem to find it.