ConstantReturn: Create a daily timeseries with a constant yearly return.

Description Usage Arguments Value

View source: R/functions.R

Description

Create a daily timeseries with a constant yearly return.

Usage

1
2
3
ConstantReturn(startDate = "1990-01-01", endDate = Sys.Date(), r,
  startValue = 1, dayCountConvention = c("weekdays", "calendardays",
  "holidays"), holiday = NULL)

Arguments

startDate

the first date of the xts to be returned

endDate

the last date of the xts to be returned

r

the yearly return

startValue

the first value of the xts

dayCountConvention

the convention to be used

holiday

for convention holidays, a timeDate holiday calendar

Value

an xts object


gluc/datapR documentation built on May 14, 2017, 12:55 p.m.