[R] a problem

笑啸 dingdonglion at 126.com
Sat Jul 31 06:08:12 CEST 2010


dear:
   when I read a Excel file(exp-11),The R project give me a error ,Just like this:
  缺少'datafile'
> write.foreign("exp-11.xls")
错误于list(df = df, datafile = datafile, codefile = codefile) : 
  缺少'datafile'
> write.foreign("exp-11.xls")
错误于list(df = df, datafile = datafile, codefile = codefile) : 
  缺少'datafile'
> write.foreign("exp-11.xls")
错误于list(df = df, datafile = datafile, codefile = codefile) : 
  缺少'datafile'
> mydata<-scan("exp-11.xls",what=list(sex="",smo="",comp="",TNum="",TG="",Endo="",Y="",HeT="",Year="",TuS="")
+ 
+ 
+ mydata
错误: 意外的符号 于
"mydata"
> mydata
错误: 找不到对象'mydata' 
Can you tell me why the R project can't read the file,thank you !
                                                                               truly yours
                                            


More information about the R-help mailing list