getObservedExtrapolationRange: Get Observed Extrapolation Range

Description Usage Arguments Value Examples

Description

This function takes a vector of data (with posisbly missing values) and returns a vector of the same length. If the corresponding value of x is not missing or is an interpolation, the returned value is 0. If the corresponding value of x is missing and is an extrapolation, then the returned value is the "distance" (in terms of number of observations) to the closest non-missing value. See examples.

Usage

1

Arguments

x

The vector of data.

Value

A vector of the same length as x.

Examples

1
2

SWS-Methodology/faoswsImputation documentation built on May 9, 2019, 11:48 a.m.