warmMonth: Warmest month of the year

View source: R/warmMonth.R

warmMonthR Documentation

Warmest month of the year

Description

Calculates the mean temperature of the warmest month of the year

Usage

warmMonth(mx, dates, type = "temp", ...)

Arguments

mx

vector of daily maximum 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 warmest 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



warmMonth(mx = daily_tmax,
           dates = seq.Date(as.Date('1981-01-01'),
            as.Date('2010-12-31'), by ='day'),
           type = 'temp',
           na.rm = TRUE)


agroclim documentation built on Oct. 14, 2022, 9:05 a.m.

Related to warmMonth in agroclim...