Message-ID: <42F0AFFB.3060003@jhsph.edu>
Date: 2005-08-03T11:52:27Z
From: Roger D. Peng
Subject: hash code for arbitrary object
In-Reply-To: <17136.17046.279126.350254@maths.uwa.edu.au>
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 at 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/