R scripts for back end cleaning and analytics of insight cloud