help_nearestNeighbourInt: Nearest neighbour interpolation.

Description Usage Arguments Author(s) References Examples

Description

Nearest neighbour interpolation

Usage

1

Arguments

dat

numeric vector

Author(s)

Johannes Brenner johannes.brenner@ufz.de

References

http://stackoverflow.com/questions/10077415/replacing-nas-in-r-with-nearest-value

Examples

1
2
3
4
5
6
7
8
library(zoo)
library(chron)
# load eddy covariance data
data(eses1)
# extract precipitation
P <- eses1$Precip
# nearest neighbor interpolation
P_interpol <- help_nearestNeighbourInt(P)

JBrenn/Helper4me documentation built on May 7, 2019, 6:49 a.m.