subsetting list in R
问题 I'm using Mcomp package in R which contains dataset for forecasting. The data is organized as yearly, quarterly and monthly frequencies. I can easily subset this into a list but cannot further subset using additional condition. ##Subset monthly data library("Mcomp") mon <- subset(M3,"monthly") Each element in the mon list has following structure, as an example mon$N1500 has the following struture $ N1500:List of 9 ..$ st : chr "M99" ..$ type : chr "MICRO" ..$ period : chr "MONTHLY" ..$