Displaying 9 results from an estimated 9 matches for "horse1".
Did you mean:
horse
2017 Jul 28
1
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9", "1.9", "1.9", : duplicate 'row.names' are not allowed
Hi,
Can someone explain this error below,
I don't understand why the 2 int columns are associated to make a row name
> horse1.data<-read.csv("cte2.csv", header=TRUE, sep=";")
> h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9", "1...
2017 Jul 28
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
...https://cran.r-project.org/web/packages/reprex/index.html (read the vignette)
--
Sent from my phone. Please excuse my brevity.
On July 28, 2017 12:58:16 PM PDT, sandoz at free.fr wrote:
>
>
>I don't understand why the 2 int columns are associated to make a row
>name
>
>> horse1.data<-read.csv("cte2.csv", header=TRUE, sep=";")
>>
>h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
>Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9&qu...
2017 Jul 28
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
...ou should check the call arguments to see
if they make sense.
Hope this helps,
Rui Barradas
Em 28-07-2017 13:14, sandoz at free.fr escreveu:
> I re post my question with the csv problem fixed.
>
> Can someone explain the error below?
> sandoz
>
>> library(mlogit)
>> horse1.data<-read.csv("cte2.csv", header=TRUE, sep=";")
>> h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="noChev",shape="long")
> #mul1.model<-mlogit(win~cteD+cteTh|0|0,data=h1.dat)
> #summary(mu...
2017 Jul 27
2
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
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")
> h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) :
le tableau de remplacement a 0 lignes...
2017 Jul 27
3
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
...e 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")
>>>
>> h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
>>
>> Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) :
>...
2017 Jul 27
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
...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")
>>
>h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
>
>Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) :
> le tableau de rem...
2017 Aug 02
0
Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.9", "1.9", "1.9", : duplicate 'row.names' are not allowed
...es<-.data.frame`(`*tmp*`, value = c("1.9", "1.9",
> "1.9", : duplicate 'row.names' are not allowed
>
> Hi,
> Can someone explain this error below,
> I don't understand why the 2 int columns are associated to make a row name
>
> > horse1.data<-read.csv("cte2.csv", header=TRUE, sep=";")
> > h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",al
> > t.var="nbChev",shape="long")
> Error in `row.names<-.data.frame`(`*tmp*`, value = c(&qu...
2010 May 11
1
has_one/belongs_to -- accessing the subordinate
...ord::Base
after_create :create_carriage
has_one :carriage, :dependent => :destroy
private
def create_carriage
Carriage.create(:horse => self)
end
end
class Carriage < ActiveRecord::Base
belongs_to :horse
end
============
This works fine using create:
========
>> horse1 = Horse.create()
=> #<Horse id: 5, created_at: "2010-05-11 16:17:06", updated_at:
"2010-05-11 16:17:06">
>> horse1.carriage
=> #<Carriage id: 5, created_at: "2010-05-11 16:17:06", updated_at:
"2010-05-11 16:17:06", horse_id: 5>
=======...
2017 Jul 27
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
...t;> 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")
>>>>
>>> h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
>>>
>>> Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = inte...