简体   繁体   中英

Write.table and txt file exporting in R

When I used write.table function to export a big object ( 136,419 observations and 922 variables) as a txt file, the exported file lost all variable names and had an extra first column which is c(1:136,419).

How can I avoid this issue?

write.table()函数的设置设置为row.names = FALSE以消除多余的第一列,而col.names = TRUE保留所有变量名称。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM