intime2: intime2

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

Time-adjusted, linear interpolation.

Usage

1
intime2(x, ij, oj, z)

Arguments

x

matrix with data to interpolate.

ij

Numeric Matrix with julian days of input data.

oj

Numeric vector with julian days of the output data.

z

Two-element, numeric vector with temporal buffer.

Details

For each row in x, the function finds the two nearest, non NA values to the target dates in ij retrieved before and after this day. Then, the function linearly interpolates the missing value linearly. This function is most suitable when all observation have the same date of recording. The function assumes that each observation has its own recording date.

Value

A matrix.


rsMove documentation built on July 1, 2020, 6:02 p.m.