Learn R Programming

climtrends (version 1.0.6)

MonthlyAnomaliesFromDailyData: Monthly anomalies

Description

MonthlyAnomaliesFromDailyData returns the monthly anomalies (observed values minus climatology) for a certain year.

Usage

MonthlyAnomaliesFromDailyData(dataSeries, yearAnomalies = NA, fromYear=1961, toYear=1990)

Arguments

dataSeries
time series of climate data
yearAnomalies
year of observed values
fromYear
start of the long-term average for the climatology
toYear
end of the long-term average for the climatology

Value

Monthly anomalies.

Examples

Run this code
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
MonthlyAnomaliesFromDailyData(dailyCollegeville, 1960)

Run the code above in your browser using DataLab