how to export data from r to a csv file basics of r programming