[R] Finding Source of Error Message of 'Non-Unique Index Entries' [FIXED]

Rich Shepard rshepard at appl-ecosys.com
Wed Jan 4 21:21:34 CET 2012


On Wed, 4 Jan 2012, David Winsemius wrote:

> Nothing attached. I don't know what you entitled teh "compressed dput output" 
> but it did not pass the filters of the mailserver and you did not copy me.

David,

   It must have been stripped off as too large (14K).

   Regardless, I solved the problem:

   The examples in the subset help page show only a single row criterion
being used, but does not explicitly note that rows can be selected only one
criterion at a time.

   Because the issue showed up only with the subset() function to extract
rows with the parameter TDS, the problem had to be in that syntax. By
changing the data frame argument to subset() from the overall chemdata to
that of only a single stream, creation of the zoo object threw no errors and
duplicated() returned zero rows.

   Wow! And I thought I understood the subset() syntax. I now do!

Thanks to you, Gabor, and everyone else who responded to this thread,

Rich



More information about the R-help mailing list