na_interp {heatwaveR} | R Documentation |
Pad NA gaps of user-defined width with interpolated values.
Description
An internal function that helps to create a time series that will
then be used by clim_calc
within ts2clm
to produce a climatology as desired by the user.
Usage
na_interp(doy = doy, x = ts_x, y = ts_y, maxPadLength)
Arguments
doy |
Date-of-year as per |
x |
Date as per |
y |
Measurement variable as per |
maxPadLength |
Specifies the maximum length of days over which to
interpolate (pad) missing data (specified as |
Value
The function returns the data (a data.table) in a long format.
Author(s)
Smit, A. J.
[Package heatwaveR version 0.4.6 Index]