hash-package: hash package

Description Details Note Author(s) References See Also Examples

Description

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

Details

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

Note

The hash package is the only full featured hash implementation for the R language. It provides more features and finer control of the hash behavior than the native features. It hss similar and some cases better performance, e.g. compared to lists with a large number of elements.

Author(s)

Christopher Brown

Maintainer: Christopher Brown <chris.brown -at- decisionpatterns -dot- com>

References

Some discussion can be found here:

See Also

hash , Extract() and environment

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  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)

decisionpatterns/r-hash documentation built on Feb. 6, 2019, 10:27 p.m.