知识点openxlsx: simplifies the the process of writing and styling Excel xlsx files from R and removes the dependency on Java.readxl: Read Excel Files. Works on Windows, Mac and Linux without external dependencies.包安装install.packages("openxlsx")install.packages("readxl")Read Excel file# readxl 自带的excel文件xls_file <- readxl::readxl_example("datasets.xls")xlsx_file <- readxl::readxl_example("datasets.xlsx")readxl::read_xls(xls_file)readxl::read_xlsx(xlsx_file)openxlsx::read.xlsx(xlsx_file)Write Excel filexlsx_file <- readxl::readxl_example("datasets.xlsx")df <- openxlsx::read.xlsx(xlsx_file)openxlsx::write.xlsx(df, file = "datasets.xlsx")Edit Excel fileopenxlsx 具有以下功能: *** 作 WorkSheet *** 作 Cell & Style插入图片函数设置行高、列宽格式化等等Referencehttps://ycphs.github.io/openxlsx/index.htmlhttps://readxl.tidyverse.org/
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)