Learn R Programming

⚠️There's a newer version (3.0.1) of this package.Take me there.

hash (version 2.2.6)

Full feature implementation of hash/associated arrays/dictionaries

Description

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.

Copy Link

Version

Install

install.packages('hash')

Monthly Downloads

28,408

Version

2.2.6

License

GPL (>= 2)

Maintainer

Christopher Brown

Last Published

February 21st, 2013

Functions in hash (2.2.6)

Format hash object for pretty printing

Methods for Function format in Package 'hash'
hash

hash/associative array/dictionary data structure for the R language
make.keys

creates/coerces objects to proper hash keys
length

Returns the number of items in a hash
values

Extract values of a hash object.
clear

Removes all key-value pairs from a hash
is.empty

Test if a hash has no key-value pairs.
has.key

Test for existence of key(s) on a hash
hash-class

Class "hash"
del

Remove key-value pair(s) from a hash
.set

assign key-value pair(s) to a hash
copy-methods

Create a seperate copy of a hash object.
hash-package

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

Accessor methods for the hash class.
invert

Create an inverted hash.
keys

Returns key(s) from a hash