How To Write A Dataframe To Csv In R