Re: [R] hash code for arbitrary object

From: Roger D. Peng <rpeng_at_jhsph.edu>
Date: Wed 03 Aug 2005 - 21:52:27 EST

You can compute MD5 and SHA1 digests with the 'digest' package.

-roger

Adrian Baddeley wrote:
> 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
>

-- 
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/

______________________________________________
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 21:57:18 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:02:29 EST