R Script to organize output from PsychManager for the TOMM