R/methods_couponbonds.R

print.dyncouponbonds <- function(x, ...) {
  cat("This is a dynamic data set of coupon bonds.\n")
  cat(paste("There are",length(x), "observations between",x[[1]][[1]]$TODAY, "and",x[[length(x)]][[1]]$TODAY,".\n"))
}

print.couponbonds <- function(x, ...) {
  cat("This is a data set of coupon bonds for:\n")
  cat(names(x),",","\n")
  cat(paste("observed at ", x[[1]]$TODAY,".","\n",sep=""))
 
  }
changshun/termstrc documentation built on May 13, 2019, 3:24 p.m.