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.