mtwa: Calculate MTWA

mtwaR Documentation

Calculate MTWA

Description

Calculate Mean Temperature of the WArmest month (MTWA) from daily values of temperature.

Usage

mtwa(.data, ...)

## S3 method for class 'numeric'
mtwa(.data, pb = NULL, ...)

## S3 method for class 'tbl_df'
mtwa(.data, cpus = 1, ...)

Arguments

.data

Object with daily values of temperature. The object can be a:

  • Numeric vector

  • Data frame (tibble object) with a column called tmp, with values of daily temperature.

...

Optional parameters, including cpus and pb.

pb

Function to signal the execution of one cycle (e.g. progressr::progressor(...)). Default: NULL, do nothing.

cpus

Numeric value with the number of CPUs to be used for the computation. Default: 1, serial computation.

Value

If the input (.data) is a

  • Numeric vector, it returns a single value for MTWA.

  • Data frame (tibble object), it returns the same data frame with an additional column called mtco, containing values for MTWA.

See Also

plot_mtwa

Other utils climate: gdd(), mat(), mi(), mtco()


special-uor/smpds documentation built on July 9, 2024, 5:39 p.m.