【发布时间】:2017-10-03 00:28:46
【问题描述】:
我有一个包含 175 行和 6 列的 .csv 文件。我想追加第 176 行。我的代码如下:
x <- data.frame('1', 'ab', 'username', '<some.sentence>', '2017-05-04T00:51:35Z', '24')
write.table(x, file = "Tweets.csv", append = T)
我希望看到的是: enter image description here
相反,我的结果是: enter image description here
我应该如何更改我的代码?
【问题讨论】:
-
在你的
write.table(..)中添加quote=F -
还添加 sep = ","