[R] [R-pkgs] hash-2.0.0

Christopher Brown cbrown at opendatagroup.com
Fri May 7 18:19:15 CEST 2010


The hash-2.0.0 has been released to CRAN.

This package implements a data structure similar to hashes in Perl and
dictionaries in Python but with a purposefully R flavor. For objects of
appreciable size, access using hashes outperforms native named lists and
vectors.

This version accounts for changes in R-2.11.0 and is optimized for both
speed and usabiity.

Some references:

http://opendatagroup.com/2010/04/26/hash-2-0-0/
http://opendatagroup.com/2009/07/26/hash-package-for-r/


Basic Examples:

  h <- hash( keys=letters, values=1:26 )
  h <- hash( letters, 1:26 )

  h$a # 1
  h$foo <- "bar"

  h[ "foo" ]
  h[[ "foo" ]]

  clear(h)
  rm(h)


Warmest Regards,

Chris

Christopher Brown
Principal
Open Data
 http://www.opendatagroup.com
 http://blog.opendatagroup.com

	[[alternative HTML version deleted]]

_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages



More information about the R-help mailing list