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
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.