now making R and SPSS format files