Data Loading...
Package 'hash' - CRAN Flipbook PDF
Package ‘hash’ February 20, 2015 Type Package Title Full feature implementation of hash/associated arrays/dictionaries V
111 Views
35 Downloads
FLIP PDF 119.94KB
Package ‘hash’ February 20, 2015 Type Package Title Full feature implementation of hash/associated arrays/dictionaries Version 2.2.6 Date 2013-02-20 Author Christopher Brown Maintainer Christopher Brown Depends R (>= 2.12.0), methods, utils Suggests testthat Description This package implements a , b="bar", c="baz" ) .set( h, c( aa="foo", ab="bar", ac="baz" ) )
clear
5 clear(h) .set( h, letters, values )
clear
Removes all key-value pairs from a hash
Description clear removes all key-values from a hash. Usage clear(x) Arguments x
A hash object.
Details Currently clear removes (rm) the key-value pairs on the hash. For large hashes it might be faster to reinitialize the hash, though this might cause memory leaks. Value None. Method clear exists entirely for its side effects. Note clear should be called prior to removing a hash. This ensures that the memory from the environment is freed. Author(s) Christopher Brown See Also del to remove specific key-values from the hash. hash. Examples h