R语言: .xlsx 文件读取
2023-07-03 本文已影响0人
LET149
1. 向R中读入.xlsx
文件
require("openxlsx") '#载入需要的R包
aa <- read.xlsx("/path/aa.xlsx", sheet=1) #向R中读入.xlsx文件,主要每个文件中可能有多个sheet,要注意选择想要读入的sheet
2. 将R中文件导出为.xlsx
格式
require(xlsx)
write.xlsx(filename, file="path/filename", rowname=F)