r语言怎样把新数据再加到已有数据的excel表格里

发布网友 发布时间:2022-04-21 01:31

我来回答

2个回答

热心网友 时间:2022-06-17 03:06

把数据写入excel,主要是用write.table函数

用?write.table或者help(write.table)来查看帮助

以下是这个函数的一些参数:

write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",
            eol = "\n", na = "NA", dec = ".", row.names = TRUE,
            col.names = TRUE, qmethod = c("escape", "double"),
            fileEncoding = "")

里面有个append参数,默认是FALSE

append    
logical. Only relevant if file is a character string. If TRUE, the output is appended to the file. If FALSE, any existing file of the name is destroyed.

把这个参数设置成TRUE就可以把数据追加到已有的文件后面了。

热心网友 时间:2022-06-17 03:07

EXCEL里有标准函数,形式简单也容易懂。
=CONCATENATE(A1,"省")

就是比一楼复杂了。
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com