lfnainterpolate: Interpolate missing values

Description Usage Arguments Value Warning Author(s) References See Also Examples

Description

If a lfobj contains missing values, the missing values are replaced by connecting the last available value before the break and the first after the break by a straight line.

Usage

1

Arguments

lfobj

An object of class "lfobj"

Value

lfobj

An object of class "lfobj"

with interpolated missing values

Warning

Check carefully in advance if interpolation is a reasonable choice for filling the hydrograph

Author(s)

Daniel Koffler and Gregor Laaha

References

Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WMO-No. 1029, 136p.

See Also

bfplot

Examples

1
2
3
4
5
6
7
8
9
data(ngaruroro)

#Part of the ngaruroro series with missing data
hydrograph(ngaruroro,startdate = "1/7/1987", enddate = "1/9/1987",amin = FALSE)

ngaruroroint <- lfnainterpolate(ngaruroro)

#The completed hydrograph
hydrograph(ngaruroroint,startdate = "1/7/1987", enddate = "1/9/1987",amin = FALSE)

Example output

Loading required package: xts
Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: lmom
Loading required package: lattice

lfstat documentation built on May 2, 2019, 6:07 p.m.