乔山办公网我们一直在努力
您的位置:乔山办公网 > excel表格制作 > 如何将spss数据导出为excel-r语言导出excel,r数据集导出excel数据

如何将spss数据导出为excel-r语言导出excel,r数据集导出excel数据

作者:乔山办公网日期:

返回目录:excel表格制作


R计算得到的数据直接导出到Excel中方法详见:https://zhidao.baidu.com/question/556082850520953052.html


把数据写入zdexcel,主要是用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就可以把数据追加到已有的文件后面了。



excel存成csv格式,然后用read.csv命令 或者将数据存在txt中,用read.table或scan。

相关阅读

关键词不能为空

ppt怎么做_excel表格制作_office365_word文档_365办公网