Learn R Programming

hash (version 3.0.1)

Full feature implementation of hash/associated arrays/dictionaries

Description

This package implements a data structure similar to dictionaries in Python and hashes in Perl and other languages but with a implementation and API with an R flavor. For objects of appreciable size, hashes outperform native named lists and vectors for lookups. A comprehensive set of functions methods and object make hashes flexible and easy to use.

Copy Link

Version

Install

install.packages('hash')

Monthly Downloads

11,364

Version

3.0.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

February 24th, 2014

Functions in hash (3.0.1)

keys

keys - get/set key(s) from a hash
Extract

Extract
hash-package

hash package
clear

Removes all key-value pairs from a hash
copy

copy
format

format - format a hash object for prinint Methods for Function format in Package 'hash'
make.keys

creates/coerces objects to proper hash keys
is.empty

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

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

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

values
invert

Create/invert a hash.
setkeys

setkeys - change/rename the keys of a hash
has.key

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

del, delete - remove key-value pair(s) from a hash
hash-class

Class "hash"