R/zzz.R

.onLoad <- function (...) {
  # See: https://github.com/wch/s3ops
  registerS3method("+", "InterestRate", plus_ir)
  registerS3method("*", "InterestRate", times_ir)
  registerS3method("-", "InterestRate", minus_ir)
  registerS3method("/", "InterestRate", div_ir)
  registerS3method("*", "DiscountFactor", times_df)
  registerS3method("/", "DiscountFactor", div_df)
}

Try the fmbasics package in your browser

Any scripts or data that you put into this service are public.

fmbasics documentation built on May 2, 2019, 6:22 a.m.