Learn R Programming

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

hash (version 2.2.6.3)

Full Featured Implementation of Hash Tables/Associative Arrays/Dictionaries

Description

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

6,745

Version

2.2.6.3

License

GPL (>= 2)

Maintainer

John Hughes

Last Published

August 19th, 2023

Functions in hash (2.2.6.3)

clear

Removes all key-value pairs from a hash
hash-package

Hash/associative array/dictionary data structure for the R language.
Format hash object for pretty printing

Methods for Function format in Package 'hash'
del

Remove key-value pair(s) from a hash
length

Returns the number of items in a hash
invert

Create an inverted hash.
is.empty

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

assign key-value pair(s) to a hash
values

Extract values of a hash object.
make.keys

creates/coerces objects to proper hash keys
hash-accessors

Accessor methods for the hash class.
copy-methods

Create a seperate copy of a hash object.
keys

Returns key(s) from a hash
hash-class

Class "hash"
has.key

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

hash/associative array/dictionary data structure for the R language