How to select only the last hour of weather data from each week in R?
I have a weather dataset with observations collected at 15-minute intervals for several weeks. I would like to extract only the last hour of weather data for each week and disregard the rest. In the week 15for example, I only want to keep rows from the cell 147 to 150 (last four rows – each… Read More How to select only the last hour of weather data from each week in R?