I have a list with 417 data frames in it. Each data frame has a separate name in the list beginning with "Dec 1981" and ending with "Aug 2016". The objects are in chronological order.
I would like to subset or filter this list just by month name. For example, create a new list object with just the Jan objects(data frames). The name of my list is
Jan_data <- SST_list[names(SST_list)=="Jan"]
Jan_data <- lapply(SST_list, "[","Jan")
We can use
grep to match the "Jan" substring in the
names of 'SST_list'