On Jan 3, 2012, at 12:26 PM, Rich Shepard wrote:

On Tue, 3 Jan 2012, David Winsemius wrote:

How can I identify the non-unique index entries within R?

?duplicated

 Thank you, David.

 I _think_ the problem comes from a duplated factor column in the data
frame. Now I need to figure out how subset() generated that additional
column.

A subsetting vector could contain (or perhaps cause "[" to create) duplicates.

data.frame(a=1:10)[ seq(1,10, by=0.5),]
 [1]  1  1  2  2  3  3  4  4  5  5  6  6  7  7  8  8  9  9 10



--


David Winsemius, MD
West Hartford, CT

______________________________________________
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.

Reply via email to