Skip to content

Commit

Permalink
Adjusted to recent changes in match
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilson Freitas committed Oct 12, 2022
1 parent 82942ef commit efd2e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/forwardrate-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ setMethod(
)
} else {
terms_ <- term(cumsum(x@terms), x@terms@units)
dates_ <- offset(x@refdate, terms_, x@calendar)
dates_ <- offset(x@refdate, as.numeric(terms_), x@calendar)
data.frame(
terms = terms_,
forward_terms = x@terms,
Expand Down
2 changes: 1 addition & 1 deletion R/spotratecurve-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ setMethod(
spotrate_ <- as.spotrate(x)
data.frame(
terms = x@terms,
dates = offset(x@refdate, x@terms, x@calendar),
dates = offset(x@refdate, unclass(x@terms), x@calendar),
rates = spotrate_
)
}
Expand Down

0 comments on commit efd2e28

Please sign in to comment.