summary R script - v. 1.0 for RK