[R] Duplicate row names are not allowed

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Tue May 23 00:00:00 CEST 2017


Start with the Posting Guide mentioned at the bottom of this email.  Note that only a very few types of attachments are permitted on this list... yours apparently were not. We generally find that providing a reproducible example that includes the data in the R code and the statements that cause difficulty all together [1][2][3] conveys questions with as little room for misunderstanding as possible.

It does seem like there is something wrong with your data import code  that is confusing data that belongs inside the data frame with row names. Just what the problem is depends on what code you used to import your data and how that data is stored in the file. You need to learn how to use the str function to examine your data, and getting us a reprex will help us help you. 

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

[2] http://adv-r.had.co.nz/Reproducibility.html

[3] https://cran.r-project.org/web/packages/reprex/index.html
-- 
Sent from my phone. Please excuse my brevity.

On May 22, 2017 12:02:46 PM PDT, ville iiskola via R-help <r-help at r-project.org> wrote:
>Hi
>I read a book where was shown an example how to create a probability
>model with mlogit. I tried to do like the instruction said but i get
>error message that "duplicate row names are not allowed". What could i
>do to fix it?
>
>I had the data in excel and imported it to R using R commander. I
>attach the data file and print sqreen of my code to here if somebody
>could help the novice. Ville



More information about the R-help mailing list