MonthlyFuncFromDay: Monthly values converted from daily values

Description Usage Arguments Value Author(s) Examples

View source: R/climtrends.R

Description

MonthlyFuncFromDay returns monthly values converted by a function from daily values.

Usage

1
MonthlyFuncFromDay(yearDF, datecol=1,valcol=2, mfunc=mean)

Arguments

yearDF

dataframe with climate data

datecol

column with dates

valcol

column with values

mfunc

function to apply on the data

Value

Monthly values.

Author(s)

Jose Gama

Examples

1
2
3
4
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
MonthlyMeanCollegeville <- MonthlyFuncFromDay(dailyCollegeville)

Example output



climtrends documentation built on May 2, 2019, 5:53 p.m.