>library(xlsx)
>data <- read.xlsx("C:\\\Users\\\Susu\\\Documents\\\画图.xlsx",sheetName = "Sheet1",encoding = "UTF-8")
#输入路径时,要注意反斜杠
#文件太大时,可能会报错,报错如下:
>Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.OutOfMemoryError: Java heap space
#改为导入csv:
>data=read.csv("D:\\\Users\\\gysu\\\Desktop\\\明细.csv",h=T)