Following on from a question I asked previously, I want to know if it is possible to extract and/or group list elements based on the elements' names.
All of the list elements contain hourly data over several days (spanning several months) and follow the same naming structure of:
YYYY-MM-DD HH
Here is what my list looks like (note that there are data for other months too, hence why I want to specifically target individual months):
What I want to do is to extract every list element with the same MM
value and then save the combined list as a data frame.
In this example, I want everything from January to be grouped together in a data frame, and for this to be repeated for the other months of the year.
The idea is that I end up with 12 data frames each representing a month of the year.
How can this be achieved?