del.h: Delete a Key-Value Pair in a Hash

Description Usage Arguments Value Author(s) Examples

Description

This function deletes a key-value pairing within a hash.

Usage

1
del.h(key, hash)

Arguments

key

A key for the hash, which will be cast into as.character() before using the assign() function.

hash

An R environment but for purposes here a hash.

Value

The function returns TRUE or FALSE depending upon the presence and presumably the effect of deletion.

Author(s)

W.H. Asquith, Spring 2009

Examples

1
2
3
4
my.new.hash <- new.h()
set.h("author",  "william", my.new.hash)
set.h("keyword", "hail", my.new.hash)
del.h("keyword", my.new.hash)

wasquith-usgs/rash documentation built on May 29, 2019, 10:31 a.m.