Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Rdictdefault-class

The Rdictdefault class.


Description

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.

Usage

Rdictdefault(keys = list(), values = list(), default)

## S4 method for signature 'Rdictdefault,ANY,ANY,ANY'
x[i, j, ..., drop = TRUE]

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.

x

A Rdictdefault object.

i

A key into the dictionary.

j, drop, ...

Unused arguments.

Slots

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.

See Also


CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.