Learn R Programming

sstModel (version 1.0.0)

print.scenarioRisk: Printing a ScenarioRisk

Description

print method for the S3 class scenarioRisk.

Usage

# S3 method for scenarioRisk
print(x, ...)

Arguments

x

S3 object of class scenarioRisk.

...

additional arguments.

Value

None (invisible NULL).

See Also

print, scenarioRisk.

Examples

Run this code
# NOT RUN {
# Creating a new scenarioRisk.
scenarios <- scenarioRisk(name          = c("earthquake",
                                            "real estate crash"),
                          probability   = c(0.001, 0.01),
                          currency      = c("CHF", "CHF"),
                          effect        = c(-1000, -10000))
# printing the scenarioRisk.
print(scenarios)

# }

Run the code above in your browser using DataLab