A simple, internal dictionary composed of a list of keys and a list of values. These keys/values can be any type, including nested lists, S4 objects, etc. Incredibly inefficient hack, but necessary for the geometric mean atom, since it requires mixed numeric/gmp objects.
Rdict(keys = list(), values = list())# S4 method for Rdict
$(x, name)
# S4 method for Rdict
length(x)
# S4 method for ANY,Rdict
is.element(el, set)
# S4 method for Rdict,ANY,ANY,ANY
[(x, i, j, ..., drop = TRUE)
# S4 method for Rdict,ANY,ANY,ANY
[(x, i, j, ...) <- value
A list of keys.
A list of values corresponding to the keys.
A Rdict object.
Either "keys" for a list of keys, "values" for a list of values, or "items" for a list of lists where each nested list is a (key, value) pair.
The element to search the dictionary of values for.
A key into the dictionary.
Unused arguments.
The value to assign to key i
.
keys
A list of keys.
values
A list of values corresponding to the keys.