Hey y'all, could use your feedback on this problem I got. I have 176 PNG maps in a folder called "barca_monthly" with file names named in the following format such as "Avg_monthly_2005_01_01" in a year_month_day style. The data runs from 2005-2019 with each 1st day of each month per year being taken into account. My objective was to create a function that could merge all of these files into a GIF and I found out how to do that. However, I am having trouble selectively choosing let us say for example all of the 2005 PNG files to create a GIF from those in the same folder. I circumvented this problem by creating sub-folders with data, however, it would be nice just to code this action.
One of my coworkers suggested using the file names of the PNG maps to create a subset based on the years/months that are wanted. Does anyone know how to do that? The filter function would not work here considering this is not a .csv file but rather 176 PNG files.
Appreciate the help!