1. 向R中讀入.xlsx文件
require("openxlsx") '#載入需要的R包
aa <- read.xlsx("/path/aa.xlsx", sheet=1) #向R中讀入.xlsx文件,主要每個文件中可能有多個sheet,要注意選擇想要讀入的sheet
2. 將R中文件導(dǎo)出為.xlsx格式
require(xlsx)
write.xlsx(filename, file="path/filename", rowname=F)