would you please share your data .. or please look at the row names in the data which you have ..
the row names should be unique , you should not have a duplicate row name .
I can’t share the data bc of copyright issues (it’s a data set from a statistics lab course).
I’ve looked at all of my data, and as far as I can see, I don’t have any duplicate row names in either the RScript or imported dataset. I’m assuming it’s mistaking some part for row names.
I’ve tried using the row.names = NULL command but that didn’t do anything.
My professor and I have both tried many fixes and I still can’t get the RScript to compile.
Can you at least show the code that is producing that error message? or even better, put together a proper REPRoducible EXample (reprex) illustrating your issue? it is not necessary to use your actual data, you can provide some made-up analogous that reproduces the problem.
Also, just to clarify terminology, R is an interpreted programming language, so, there is no compiling of R code, maybe you mean you are "sourcing" an R script or "knitting" an .Rmd document?
I see. That sounds weird to me but it is the equivalent of "knitting" an .R script. The important thing is that now we clearly understand what you are doing
.