Skip to contents

Load potential evaporation data

Usage

loadPE(link, skip = 0, metaRows = 10, impute = TRUE)

Arguments

link

Link to the specified file for import

skip

Stet to zero, denotes the number off rows you wish to skip

metaRows

Set to 10, determines the amount of rows set as metadata

impute

Set to TRUE, this fills in missing data using the 'forecast::na.interp()' function

Value

A tidied dataset of PE data

Details

Loads PE data obtained from HYRAD. Missing data are imputed using the 'na.interp()' function in the forecast package. For the seasonal series, a robust STL decomposition is first computed. Then a linear interpolation is applied to the seasonally adjusted data, and the seasonal component is added back.