Thanks very much for both your suggestions. When you refer to doing a 'double for loop', do you mean finding the average for rowgrp and colgrp within each 6x6 block? If so, how would this be done so that the whole data frame is covered? It would seem to me that the 'mean' operation would need to combine rowgrp AND colgrp together? How would I get the loop to cycle through each set of 6x6 blocks of the data frame?
Thanks again, Steve _________________________________________________________________ Win New York holidays with Kellogg’s & Live Search ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.