Learn R Programming

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

hash (version 2.1.0.2)

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.1.0.2

License

GPL (>= 2)

Maintainer

ORPHANED

Last Published

April 20th, 2012

Functions in hash (2.1.0.2)

keys

Returns key(s) from a hash
copy-methods

Create a seperate copy of a hash object.
values

Extract values of a hash object.
length

Returns the number of items in a hash
hash-package

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

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

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

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

Class "hash"
hash-accessors

Accessor methods for the hash class.
Format hash object for pretty printing

Methods for Function format in Package 'hash'
has.key

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

creates/coerces objects to proper hash keys
invert

Create an inverted hash.
clear

Removes all key-value pairs from a hash
.set

assign key-value pair(s) to a hash