user3702909
user3702909

Reputation: 63

how to remove index column when export file in R

I am using R programming to export a .dat file. but the exported file is always included the index column. Is there any possible way/ code to export data in R without index column?

Upvotes: 6

Views: 22415

Answers (1)

vrajs5
vrajs5

Reputation: 4126

Lets say you are using write.table and your dataset is df then following will work for you

write.table(df,'df.dat',row.names=F)

Upvotes: 8

Related Questions