请问为什么导出xlsx格式表格,不能做到不生成行名?显示报错(默认的true是可以正常导出数据的),同时col.names可以设置true和false正常导出。
PS:已经安装了JAVA和相关的包。
install.packages("rJava")
install.packages("xlsxjars")
install.packages("xlsx")
library(xlsx)
> write.xlsx(data3,"C:/Users/Administrator/Desktop/data3.xlsx",
+ sheetName = "Sheet2",
+ row.names = FALSE)
Error in .jcall(cell, "V", "setCellValue", value) :
method setCellValue with signature ([Ljava/lang/String;)V not found
In addition: Warning message:
In if (is.na(value)) { :
the condition has length > 1 and only the first element will be used