setnum.h: Set a Numeric Value in a Hash

Description Usage Arguments Value Author(s) Examples

Description

This function sets a numeric value into a hash for the given key.

Usage

1
setnum.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, which is coerced by as.numeric().

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()
setnum.h("author",  "324.234", my.new.hash)
setnum.h("keyword", 212332, my.new.hash)

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