added .csv export for R