[R] Excel import; was: a problem

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Jul 31 11:41:26 CEST 2010


PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html which suggests to use 
sensible subject lines.

Please read the manual R Data Import/Export which contains remarks about 
Excel.

Best,
Uwe Ligges


On 31.07.2010 06:08, §¸§· wrote:
> 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 at 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.



More information about the R-help mailing list