Learn R Programming

kehra (version 0.1)

fillMissingValues: Fill missing values

Description

Fill missing values

Usage

fillMissingValues(ids, df, maxgap = 12, parallel = FALSE, formatDT = "%Y-%m-%d %H:%M")

Arguments

ids
site identification codes
df
dataframe containing the timeseries in columns separated by ID (header must follow this convention: column 1 = "datetime", column 2 = "SiteID", column 3 = "variable name"). df can be the result of GetDataFromECMWF().
maxgap
maximum gap to interpolate (e.g. 6 hours)
parallel
Bolean, if TRUE parallel jobs are allowed
formatDT
format of the datetime variable

Value

updated df with infilled values

Examples

Run this code
# fillMissingValues(clima)

Run the code above in your browser using DataLab