clear.h: Clear (Empty) a Hash

Description Usage Arguments Value Author(s) Examples

Description

This function clears or empties all of the contents of a hash.

Usage

1
clear.h(hash)

Arguments

hash

An R environment but for purposes here a hash.

Value

This function is used for its side effects.

Author(s)

W.H. Asquith, Spring 2009

Examples

1
2
3
4
5
6
7
my.new.hash <- new.h()
set.h("author1", "william",  my.new.hash)
set.h("author2", "george",   my.new.hash)
set.h("author3", "theodore", my.new.hash)
each.h(my.new.hash)
clear.h(my.new.hash)
each.h(my.new.hash)

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