View source: R/data_functions.R
Cubic.Spline.Interpolation | R Documentation |
This function interpolates the selected columns of a data frame with cubic spline interpolation.
Cubic.Spline.Interpolation(Data, Column.Names)
Data |
data.frame. Data as in data.frame class. |
Column.Names |
character. Name of the columns to be interpolated. |
The aim of this function is to interpolate the values between two entries. The argument maxgap in na.spline
function is internally selected in this function to interpolate all missing values. na.rm
argument in na.spline
function is selected as FALSE since other NA values should be kept, if there is any.
An data.frame called "data.interpolate".
## Not run:
Cubic.Spline.Interpolation(data, "Open")
data.interpolate
Cubic.Spline.Interpolation(data, c("Open", "High", "Low", "Close"))
data.interpolate
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.