I have a data frame in R that I uploaded from a csv in R and am trying to find the maximum temperature for each day. The data.frame is formatted such that col(1) is Date (YYYY-MM-DD HH:mm format) and col(2) is the temperature at that Date/Time. I tried sorting the data into subsets, working top down (Years, months in that year, days in those months), but found it to be very complicated.
Here is a sample of the data frame:
Date Unit Temp
1 2012-10-21 21:14:00 C 82.5
2 2012-10-21 21:34:00 C 37.5
3 2012-10-21 21:54:00 C 20.0
4 2012-10-21 22:14:00 C 26.5
5 2012-10-21 22:34:00 C 20.0
6 2012-10-21 22:54:00 C 19.0