fillMissingValues {kehra}R Documentation

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

# fillMissingValues(clima)


[Package kehra version 0.1 Index]