[R] Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9", "1.9", "1.9", : duplicate 'row.names' are not allowed

2017-07-28 Thread sandoz
0 5.7 6 6.9 48.3 ... $ win : Factor w/ 2 levels "no","yes": 1 1 1 2 1 1 1 1 1 1 ... below the .csv file url for those willing to reproduce the error https://www.dropbox.com/s/wv7nq8tk9k87le5/cte2.csv?dl=0 sandoz __ R-help@r-p

[R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread sandoz
Hi, Please help about the error I am getting after the h1.dat<- line : this line worked with much more independant variables and bigger data. This time I want to work with just 2 variables cteD & cteTh. What is wrong ? > setwd("C:/Rstudio/Trot") > library(mlogit) > horse1.data<-read.csv("cte2.csv