There's a very detailed explanation here:
http://www.linguistics.ucsb.edu/faculty/stgries/teaching/groningen/readme.txt
Just follow the instruction and you will get the result.
The key for the R script to work is to organize your data as required.
Take the collexeme_analysis as an example...