itsFin {its} | R Documentation |
Financial functions for objects of class "its"
.
accrueIts(x,daysperyear=365)
x |
an object of class "its" |
daysperyear |
integer, representing days per year for accrual |
accrueIts
Accrues an annual rate stored in x, expressed as a
decimal (not a percentage), based on the difference of the time-stamps.
The accrued value is not cumulated, it is a per-period return.
An object of class "its"
Giles Heywood
ts
,
POSIXct
,
itsFile
,
itsLags
itsJoin
itsTimes
itsSubset
itsFin
itsDisp
itsInfo
itsCumdif
itsArith
itsInterp
a <- matrix(c(seq(by=24*60*60,length=20),1:20,41:60),nrow=20,ncol=3) b <- as.its(a) accrueIts(b[which(weekdayIts(b)),]/100,daysperyear=365)