Improve the R script

* Added support for grouping columns

* suppress the loading library messages