Description Usage Arguments Value Author(s) Examples
FillYearlyGapsWithSomeValue
fills (literally) missing
years with date+some value.
1 2 | FillYearlyGapsWithSomeValue(dataYearSeries,FromYear=min(dataYearSeries[,1]),
ToYear=max(dataYearSeries[,1]), missingValue=-9999)
|
dataYearSeries |
dataframe with climate data |
FromYear |
starting year |
ToYear |
ending year |
missingValue |
value representing missing data |
complete time series.
Jose Gama
1 2 3 4 5 6 7 8 | # xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville=ReadGHCNymd('xgdcnCA008201000.dat')
yearlyCollegeville=YearFuncFromDay(dailyCollegeville)
colnames(yearlyCollegeville) <- c('year','temperature')
yearlyCollegeville<-ValuesBetween2years(yearlyCollegeville,1918,1993)
yearlyCollegeville<-FillYearlyGapsWithSomeValue(yearlyCollegeville, missingValue=NA)
plot(yearlyCollegeville,type='l')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.