|
发表于 2015-11-6 17:40:45
|
显示全部楼层
新手报到,请多关照!
读入excel 文件 出现错误,大神帮忙,好像是java的问题,xp32笔记本
> ########################读取Excel数据
> install.packages("xlsx")
--- 在此連線階段时请选用CRAN的鏡子 ---
试开URL’https://mirrors.tuna.tsinghua.ed ... /3.2/xlsx_0.5.7.zip
Content type 'application/zip' length 401142 bytes (391 KB)
downloaded 391 KB
程序包‘xlsx’打开成功,MD5和检查也通过
下载的二进制程序包在
C:\Documents and Settings\Administrator\Local Settings\Temp\RtmpCSWzvh\downloaded_packages里
> library("xlsx")
载入需要的程辑包:rJava
载入需要的程辑包:xlsxjars
Error : loadNamespace()里算'xlsx'时.onLoad失败了,详细内容:
调用: .jinit()
错误: Cannot create Java virtual machine (-4)
错误: ‘xlsx’程辑包或名字空间载入失败,
> Forest<-read.xlsx("ForestData.xlsx",1,header=TRUE,as.data.frame=TRUE)
错误: 没有"read.xlsx"这个函数
> str(Forest)
Error in str(Forest) :
在为'str'函数选择方法时评估'object'参数出了错: 错误: 找不到对象'Forest'
> levels(Forest$month)
Error in levels(Forest$month) : 找不到对象'Forest'
> Forest$month<-factor(Forest$month,order=TRUE,levels=c("jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"))
Error in factor(Forest$month, order = TRUE, levels = c("jan", "feb", "mar", :
找不到对象'Forest'
> levels(Forest$month)
Error in levels(Forest$month) : 找不到对象'Forest' |
|