print-methods: 'EventSeries'-print method

print,EventSeries-methodR Documentation

EventSeries-print method

Description

Prints an EventSeries

Usage

## S4 method for signature 'EventSeries'
print(x, type = "pretty", indices, round.value = 0, ...)

## S4 method for signature 'eventList,ANY,missing'
x[i]

Arguments

x

An object of class EventSeries

Details

This method prints an object of class EventSeries in an formatted way.

Formatting options are provided each event's EventDate, EventType, EventValue, and state variables from the java-object to R (through rJava) and structures the data in an R-data.frame object.

Value

An R-data.frame containing a the structured printout

See Also

ContractType, events

Examples

pam = Pam()
set(pam, what=list(
                   ContractID = "001",
                   Currency = "CHF",
                   ContractRole = "RPA",
                   StatusDate       = "2012-12-31T00",
                   ContractDealDate = "2012-12-31T00",
                   InitialExchangeDate = "2013-01-01T00",
                   MaturityDate = "2013-03-31T00",
                   NotionalPrincipal = 1000, 
                   NominalInterestRate = 0.01,
                   DayCountConvention = "30E/360"))
ad = AD0("2012-12-31T24")
evs = events(pam, ad)
class(evs)

print(evs)
print(evs, indices=c(-4,-9))


wbreymann/FEMS documentation built on Dec. 8, 2022, 9:43 a.m.