How to write to CSV in R without index ?
We know that when we write some data from DataFrame to CSV file then a column is automatically created for indexing. We can remove it by some modifications. So, in this article, we are going to see how to write CSV in R without index.
To write to csv file write.csv() is used.
Lets first see how indices appear when data is written to CSV.
Now let us see how these indices can be removed, for that simply set row.names parameter to False while writing data to a csv file using write.csv() function. By Default, it will be TRUE and create one extra column to CSV file as index column.
My Personal Notes arrow_drop_up
Please Login to comment...