coldMonth: Coldest month of the year

Description Usage Arguments Value Examples

View source: R/coldMonth.R

Description

Calculates the mean temperature of the coldest month of the year

Usage

1
coldMonth(mn, dates, type = "temp", ...)

Arguments

mn

vector of daily minimum temperature series.

dates

vector of dates corresponding with daily temperature series

type

type of output. It can be "temp" for temperature or "month" for the number of the coldest month.

...

any other argument. It is expected to be "na.rm" in case NA values are required to be removed.

Value

Depending on argument type, the output will be a numeric value with the month (type = "month") or with temperature (type = "temp").

Examples

1
2
3
4
5
coldMonth(mn = daily_tmin,
           dates = seq.Date(as.Date('1981-01-01'),
            as.Date('2010-12-31'), by ='day'),
           type = 'temp',
           na.rm = TRUE)

rsnotivoli/agroclim documentation built on March 21, 2020, 12:22 a.m.