[R] hash code for arbitrary object

From: Adrian Baddeley <adrian_at_maths.uwa.edu.au>
Date: Wed 03 Aug 2005 - 14:05:42 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Aug 03 14:11:15 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:39 EST