[R] hash code for arbitrary object

Adrian Baddeley adrian at maths.uwa.edu.au
Wed Aug 3 06:05:42 CEST 2005


Can anyone suggest a simple way to calculate a 'hash code'
from an arbitrary R object?

hash(x) should return an integer or string 
with the property that 
     if hash(x) != hash(y) then x and y are not identical
and the time to compute hash(x) should be quite short.

Any suggestions welcome
thanks
Adrian Baddeley




More information about the R-help mailing list