spline_fill: Spline fill missing observations

Description Usage Arguments Value Examples

View source: R/seas_utils.R

Description

Spline fill missing observations from the first observation to the last, leaving NA observations in the head and tail

Usage

1

Arguments

x

data with missing observations

Value

data with interpolated missing observations, except at head and tail, which remain NA

Examples

1
spline_fill_trend(c(NA,1,2,3,NA,5)) ## NA 1 2 3 4 5

dateutils documentation built on Nov. 10, 2021, 5:09 p.m.