Learn R Programming

hash (version 2.1.0.1)

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.1.0 Date: 2011-03-17 License: GPL (>= 2) LazyLoad: yes Depends: R (>= 2.10.0), utils, methods }

References

http://opendatagroup.com/2010/04/26/hash-2-0-0/

http://opendatagroup.com/2009/07/26/hash-package-for-r/

http://opendatagroup.com/2010/02/17/hash-1-99-x/ http://opendatagroup.com/2009/10/21/r-accessors-explained/

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