Working with data frames: collecting results into one data frame in R
In the workspace, I have 48 data frames:
zbp1994f, zbp1994m, zbp1994r zbp1995f, zbp1995m, zbp1995r ...... zbp2009f, zbp2009m, zbp2009r
In each frame, there is a group variable (say, group). I calculate a statistic (Moran's I) by group for just one data frame, that is zbp1994f:
This gives me the Moran_result_1994f data frame, which contains the statistics by group.
My goal is to do the job for all the data frames, and make a panel data set:
I wonder how to loop the initial procedure over the year (1994:2009) and c("f","m","r").