Description Usage Arguments Value Author(s) Examples
MonthlyFuncFromDay
returns monthly values converted by a function from daily values.
1 | MonthlyFuncFromDay(yearDF, datecol=1,valcol=2, mfunc=mean)
|
yearDF |
dataframe with climate data |
datecol |
column with dates |
valcol |
column with values |
mfunc |
function to apply on the data |
Monthly values.
Jose Gama
1 2 3 4 | # xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
MonthlyMeanCollegeville <- MonthlyFuncFromDay(dailyCollegeville)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.