Learn R Programming

climtrends (version 1.0.6)

CompleteMissingValuesDailyMean: complete missing values on a time series of daily values (mean)

Description

CompleteMissingValuesDailyMean complete missing values on a time series of daily values by using the average of 1 or more days before or after.

Usage

CompleteMissingValuesDailyMean(dataSeries, windowBefore=1,windowAfter=1, missingValue=-9999)

Arguments

dataSeries
dataframe with climate data
windowBefore
number of days before the day with missing data
windowAfter
number of days after the day with missing data
missingValue
value representing missing data

Value

Time series.