Rdictdefault-class | R Documentation |
This is a subclass of Rdict that contains an additional slot for a default function, which assigns a value to an input key. Only partially implemented, but working well enough for the geometric mean. Will be combined with Rdict later.
Rdictdefault(keys = list(), values = list(), default)
## S4 method for signature 'Rdictdefault,ANY,ANY,ANY'
x[i, j, ..., drop = TRUE]
keys |
A list of keys. |
values |
A list of values corresponding to the keys. |
default |
A function that takes as input a key and outputs a value to assign to that key. |
x |
A Rdictdefault object. |
i |
A key into the dictionary. |
j , drop , ... |
Unused arguments. |
keys
A list of keys.
values
A list of values corresponding to the keys.
default
A function that takes as input a key and outputs a value to assign to that key.
Rdict
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.