I am new in R and I've been stuck on matching hour by date for awhile now. I have this date frame that has a column for date and a column for hour. It looks like the following
Date Hour
June1 0
June1 1
June1 2
June1 0
June1 1
June2 0
June2 1
I want to be able to match all the same hour together by date. The hours are numbered from 0-23. So for example, I want all hour 1 in June 1 to be matched together and all hour 2 in June 1 to be matched (and so on). It's probably a simple solution, but I can't figure it out ): I would really appreciate some help!