R scripts for DREAM data processing