Learn R Programming

hash (version 2.2.4)

hash-package: 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.

Arguments

docType

package

Details

ll{ Package: hash Type: Package Version: 2.2.4 Date: 2012-10-28 License: GPL (>= 2) LazyLoad: yes Depends: R (>= 2.12.0), utils, methods }

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

Run this code
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)

Run the code above in your browser using DataLab