You generally aren't allowed to have duplicate row names in a data frame in
R. If you want to keep your rownames you can make them a column in the data
frame before unsplitting.
Scott
On Thursday, May 19, 2011 at 5:27 AM, Cecilia Carmo wrote:
> Hi everyone,
>
>
>
> I have already used split() and unsplit() in data frames without problems,
> but now Im applying these functions to other data and when using unsplit()
> I have received the following message:
>
>
>
> Error in `row.names<-.data.frame`(`*tmp*`, value = c("1",
"2", "3", "4", :
>
> duplicate 'row.names' are not allowed
>
> In addition: Warning message:
>
> non-unique values when setting 'row.names':
>
>
>
> Could anyone explain me what does this mean?
>
>
>
> Thank you in advance,
>
>
>
> Cecília Carmo
>
> (Universidade de Aveiro - Portugal)
>
>
> [[alternative HTML version deleted]]
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]