vals.h: Extract the Values of a Hash

Description Usage Arguments Value Author(s) Examples

Description

This function extracts the values of a hash as a simple returned vector. Such an operation is likely not appropriate if the hash itself contains values other than scalars.

Usage

1
vals.h(hash)

Arguments

hash

An R environment but for purposes here a hash.

Value

This function returns a vector of the values of the hash. The vector is not coerced into particular formats such as character, numeric, integer, factor, or logical.

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.