[R] Finding Source of Error Message of 'Non-Unique Index Entries'
Rich Shepard
rshepard at appl-ecosys.com
Tue Jan 3 18:48:43 CET 2012
On Tue, 3 Jan 2012, Rich Shepard wrote:
> I _think_ the problem comes from a duplicated factor column in the data
> frame. Now I need to figure out how subset() generated that additional
> column.
Nope. That's not it.
Running 'duplicated(burns.tds, incomparables = FALSE)' produces a listing
of FALSE and TRUE keyed by position:
> duplicated(burns.tds, incomparables = FALSE)
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[25] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[37] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[49] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[61] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[73] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[85] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[97] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[109] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE
...
but, summary(burns.tds), str(burns.tds), or burns.tds produces a comparable
list so I can find the TRUE by position and determine what's duplicated.
What do I do to use this output to find the duplicates that won't let
read.zoo() complete?
Rich
More information about the R-help
mailing list