GC processing R code for summary reports