Description Usage Arguments Value Examples

Function useful for Interpolation. can be either "Dates" or "Numeric", allowing to easily Interpolate on discount curves. The interpolation can be done using linear or cubic-spline.

1 | ```
interpolate(X, Y, x, method = "linear")
``` |

`X, Y` |
Vectors giving the coordinates of the points to be interpolated. X can optionally be "Date" format, allowing to interpolate on a typical j discount curve structure. |

`x` |
A single point specifying where to interpolate on observations of X. Can be numeric, Date or character ("YYYY-MM-DD") |

`method` |
Either linear ("l") or cubicspline ("cs") |

The value corresponding to x of values in Y.

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.