set.h: Set a Value in a Hash

Description Usage Arguments Value Author(s) Examples

Description

This function sets a value into a hash.

Usage

1
set.h(key, val, hash)

Arguments

key

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

val

The value to associate with the key.

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
my.new.hash <- new.h()
set.h("author",  "william", my.new.hash)
set.h("keyword", "hail", my.new.hash)

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