export df to csv r code example
Example 1: python save df to csv
df.to_csv(r'/directory/path/file_name.csv', index = False, header = True)
Example 2: write to csv in r
write.table(df, file = paste("myName.csv"),sep=",", row.names = FALSE)
# row.names = FALSE removes the index of the rows
Example 3: r write to csv
write.csv(Your DataFrame,"Path where you'd like to export the DataFrame\\File Name.csv", row.names = FALSE)