Skip to content
Prev 304926 / 398503 Next

unique with tolerance

On 06/09/2012 6:48 AM, Michael Bach wrote:
It might be enough to round your values before checking.  For the example,

dups <- duplicated( round(v2) )
v2[!dups]

(This gives 3.04 rather than 3.06; I don't know if you care.)

Duncan Murdoch