copy.h: Make a Copy of a Hash

Description Usage Arguments Value Author(s) Examples

Description

This function copys a hash by successive copying of the values on a key-by-key basis. No provision is made for situations involving values that are references themselves.

Usage

1
copy.h(hash)

Arguments

hash

An R environment but for purposes here a hash.

Value

This function returns a hash.

Author(s)

W.H. Asquith, June 2011

Examples

1
2
3
4
5
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)
vals.h(my.new.hash)

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