hash-package {hash}R Documentation

Hash/associative array/dictionary data structure for the R language.

Description

This S4 class is designed to provide a hash-like data structure in a native R style and provides the necessary methods for all general methods for hash operations.

Details

Package: hash
Type: Package
Version: 1.0.2
Date: 2009-10-11
License: LGPL 2+
LazyLoad: yes
Depends: methods

Author(s)

Christopher Brown

Maintainer: Christopher Brown <cbrown -at- opendatagroup -dot- com>

References

http://www.mail-archive.com/r-help@r-project.org/msg37637.html

http://www.mail-archive.com/r-help@r-project.org/msg37650.html

http://tolstoy.newcastle.edu.au/R/help/05/12/index.html#18192

See Also

See also hash , hash-accessors and environment

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)


[Package hash version 1.0.2 Index]