Learn R Programming

sstModel (version 1.0.0)

participation: Constructing a Participation

Description

participation is the constructor for the S3 class participation. It allows to build for a participation position.

Usage

participation(currency, value)

Arguments

currency

character value of length one. The currency in which the participation is expressed.

value

positive numeric value of length one. The total value of the participation. This must be expressed in the same currency as currency.

Value

an S3 object, instance of the class participation.

See Also

summary.participation, print.participation.

Examples

Run this code
# NOT RUN {
# Creating new participations.
participation1 <- participation("USD", 1000)
participation2 <- participation("EUR", 2000)

# }

Run the code above in your browser using DataLab