write.xlsxã§è¤æ°ã·ã¼ãã«ä¸åº¦ã«æ¸ãè¾¼ã
æè¿ãXLConnectããã±ã¼ã¸ããopenxlsxããã±ã¼ã¸ã«éæ¿ããã¾ããã
çç±ã¯å°ãã§ã大ããªãªãã¼ã¿ãExcelã·ã¼ãã«åºåãããã¨ããã¨XLConnectã§ã¯å¯¾å¿ã§ããªãã±ã¼ã¹ããã£ãããã§ãã
ã§ãopenxlsxã«ã¤ãã¦ã®è¨äºã¯ããããæ¸ããã¦ããã®ã ããã©ãããã®ä¸ã®write.xlsx()ã«ã¤ãã¦ã¯æ
å ±ãè¦å½ãããªãã£ãã®ã§ã¡ã¢ã
ãã¤ã³ãã¯åºåãããã¼ã¿ããªã¹ãã«ãã¦æ¸¡ãã¨ãããã¨ã§ãã
library(openxlsx) smp <- list("IRIS1"=iris, "IRIS2"=iris) write.xlsx(smp, "sample.xlsx")
ããã§IRIS1ãIRIS2ã¨ããã·ã¼ãã«ããããirisãã¼ã¿ãåºåããã¦ããã¯ãã§ãã