Learn R Programming

lfstat (version 0.9.12)

lfnainterpolate: Interpolate missing values

Description

If a low flow object 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

lfnainterpolate(lfobj)

Value

lfobj

An object of class "lfobj"

with interpolated missing values

Arguments

lfobj

An object of class "lfobj"

Author

Daniel Koffler and Gregor Laaha

Warning

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

References

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

See Also

bfplot

Examples

Run this code
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)

Run the code above in your browser using DataLab