View source: R/spline.interpolation.R
| spline.interpolation | R Documentation |
This function detects gap(s) in time series, inserts the missing rows based on the provided temporal resolution and assings NA values to the corresponding value. If required the NA values can be replaced by spline interpolation using na.spline of the package zoo.
spline.interpolation(df, resolution, fill = FALSE)
df |
dataframe with first column containing date and time in the format |
resolution |
integer, indicating the resolution of dendrometer data in minutes. |
fill |
logical, if |
A dataframe containing the dendrometer data including gaps filled with either NA or interpolated values.
library(dendRoAnalyst) data(nepa17) gf_nepa17<-spline.interpolation(df=nepa17, resolution=60) head(gf_nepa17,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.