FillDailyGapsWithSomeValue: fill missing days with some value

Description Usage Arguments Value Author(s) Examples

View source: R/climtrends.R

Description

FillDailyGapsWithSomeValue fills (literally) missing days with date+some value.

Usage

1
FillDailyGapsWithSomeValue(dataYearSeries,FromDate,ToDate, missingValue=-9999)

Arguments

dataYearSeries

dataframe with climate data

FromDate

starting date

ToDate

ending date

missingValue

value representing missing data

Value

complete time series.

Author(s)

Jose Gama

Examples

1
2
3
4
5
6
7
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
daylyCollegeville2<-FillDailyGapsWithSomeValue(dailyCollegeville,
'1916-06-01','2010-11-30', missingValue=NA)
str(dailyCollegeville)
str(daylyCollegeville2)

climtrends documentation built on May 29, 2017, 11:58 p.m.

Search within the climtrends package
Search all R packages, documentation and source code