R code – processes cluster information