Option.portfolio: Option.portfolio

Description Usage Arguments Value Note Examples

Description

S4 method to construct Option.portfolio S4 objects. It accepts different sets for parameters types.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Option.portfolio(x)

## S4 method for signature 'ANY'
Option.portfolio(x)

## S4 method for signature 'list'
Option.portfolio(x)

## S4 method for signature 'data.frame'
Option.portfolio(x)

Arguments

x

list of Option S4 object or a data.frame

Value

a Option.portfolio S4 object

Note

Arguments (ANY)
A call to Project.portfolio( ) with no parameters will return an error message for mismatch argument.

Arguments list(). A non-empty list with Option S4 objects.

Arguments data.frame. A data.frame where columns represent factors and rows are the options. The data frame is checked for no columns and no rows. The constructors called subsequently will verify if acceptable values where used to factor evaluation and for distinct names of factors and options.

It is possible to obtain a dummy table to serve as example by construction a potrfolio using Option.portfolio(list.of.options) and after converting it in a data.frame using the function as.data.frame(option.portfolio).

Examples

1
2
3
## Not run: option.portfolio <- Option.portfolio(list.of.options)

## Not run: option.portfolio <- Option.portfolio(my.option.portfolio.data.frame)

ptaranti/coppeCosenzaR documentation built on March 25, 2020, 11:35 a.m.