Hi

I have an example file in excel and i have following instructions to open and analyze the data in it.

> library(RODBC)
> library(mlogit)
> z<-odbcConnectExcel("C:\\2008 Racedata.xls")

Everything ok untill the next command

> x<-mlogit.data(y,choice="winner",shape="long",id.var="datekey",alt.var="horseno")
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.8", "1.11", "1.6",  : 
  duplicate 'row.names' are not allowed

Could someone tell me what is wrong...this is an examble file and i just followed the instructions in the paper but not working...

thanks already.....!!

Ville





	[[alternative HTML version deleted]]

