Added Michelle G's SummarizeByGrid function

Modified name to match naming convention (was SummarizeByGrid.r).