On 9/6/2012 7:24 PM, Bert Gunter wrote:
... and if it Duncan's suggestion won't do, maybe approaching it via
clustering might be useful.
But do note that, as stated, the problem is not well defined, because
transitivity fails: consider

v <- c(1,2,3,4,5,10)

with a tolerance of <=2. Then 1 is the same as 2 and 3, 2 and 3 are
the same as 4, but 1 is not the same as 4, etc. Exactly what would you
choose as the "unique" values with this tolerance in this situation?


Thanks, good point. In my case the tolerance was much lower than the actual values, so I chose Duncan's rounding approach.

Michael

______________________________________________
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