Skip to content
Prev 284253 / 398502 Next

how to avoid writing index in write.table command

On Feb 5, 2012, at 2:53 AM, sagarnikam123 wrote:

            
It's time to "get with the program", sagarnikam123. You are asked in  
the Posting Guide to provide a reproductible example. At the very  
least you should provide str() on your dataframe.
If row.names = FALSE didn't do it, then there is a named "index"  
column and you need to write an object from which you have removed the  
"index" column

temp <- dfrm[,-1]
write.table(temp, "filenam.txt", row.names=FALSE)
Which is neither an arhcive nor is it the R help Mailing list.