frostFreqs: Frequency of frosts

View source: R/frostFreqs.R

frostFreqsR Documentation

Frequency of frosts

Description

This function calculates the frequency of frost occurrence, by month.

Usage

frostFreqs(
  mn,
  dates,
  thres = 0,
  out = NULL,
  iniday = "07-01",
  endday = "06-30"
)

Arguments

mn

vector containing the daily minimum temperature series.

dates

sequence of daily dates coinciding with temperature data series.

thres

temperature threshold considered to trigger frost occurrence (0 by default).

out

system path to the generated output file ('.pdf').

iniday

first day of the year ("dd-mm") to consider for first and last occurrence of frost.

endday

last day of the year ("dd-mm") to consider for first and last occurrence of frost.

Details

Despite the logical threshold of temperature is 0 ÂșC to determine frost occurrence, the argument "thres" is open to change in case of different units of temperature.

Value

If the output path is defined, a pdf file is created.

Examples


frostFreqs(mn = daily_tmin, dates = seq.Date(as.Date('1981-01-01'),
                             as.Date('2010-12-31'), by ='day'), thres = 0)


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