Write data to file ready for R

Perhaps the double quotes used in the CVS pose a problem in R later.