R Code for doing citation analysis on publications