Learn R Programming

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

hash (version 2.1.0.1)

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

7,767

Version

2.1.0.1

License

GPL (>= 2)

Maintainer

Christopher Brown

Last Published

April 17th, 2012

Functions in hash (2.1.0.1)

.set

assign key-value pair(s) to a hash
has.key

Test for existence of key(s) on a hash
make.keys

creates/coerces objects to proper hash keys
hash

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

Extract values of a hash object.
clear

Removes all key-value pairs from a hash
length

Returns the number of items in a hash
keys

Returns key(s) from a hash
is.empty

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

Create an inverted hash.
Format hash object for pretty printing

Methods for Function format in Package 'hash'
del

Remove key-value pair(s) from a hash
copy-methods

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

Class "hash"
hash-accessors

Accessor methods for the hash class.
hash-package

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