GwexObs | R Documentation |
Constructor of class [GwexObs
]
GwexObs(variable, date, obs)
variable |
'Prec' or 'Temp' |
date |
vector of class 'Date' |
obs |
matrix nTime x nStations of observations |
An object of class [GwexObs
]
# Format dates corresponding to daily observations of precipitation and temperature
vecDates = seq(from=as.Date("01/01/2005",format="%d/%m/%Y"),
to=as.Date("31/12/2014",format="%d/%m/%Y"),by='day')
# build GwexObs object with precipitation data
myObsPrec = GwexObs(variable='Prec',date=vecDates,obs=dailyPrecipGWEX)
# print GwexObs object
myObsPrec
# build GwexObs object with temperature data
myObsTemp = GwexObs(variable='Temp',date=vecDates,obs=dailyTemperGWEX)
# print GwexObs object
myObsTemp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.