MonthTrendYearsFuncFromDay: Monthly values converted from daily values

Description Usage Arguments Value Author(s) Examples

View source: R/climtrends.R

Description

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

Usage

1
MonthTrendYearsFuncFromDay(yearDF, datecol=1,valcol=2, mfunc=mean, mmonth)

Arguments

yearDF

dataframe with climate data

datecol

column with dates

valcol

column with values

mfunc

function to apply on the data

mmonth

starting month

Value

Monthly values.

Author(s)

Jose Gama

Examples

1
2
3
4
5
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
MonthlyCollegeville <- MonthTrendYearsFuncFromDay(dailyCollegeville, mmonth=1)
MonthlyCollegeville[,1] <- as.Date(MonthlyCollegeville[,1], origin = "1970-01-01")

climtrends documentation built on May 29, 2017, 11:58 p.m.