yearly.extrm: Yearly extrema retrieval

Description Usage Arguments Details Value Author(s) Examples

Description

retrieve the (yearly) extremes for a given list of extrema. The two last arguments specify if we want rather minima (Fun=min, tmp='TN') or maxima. This returns the data AND data.frame with the corresponding year.

Usage

1
yearly.extrm(list.y = list_by_years, Fun = max, tmp = "TX")

Arguments

list.y

List containing numeric vectors of (daily typically) extrema for each year. Length of list.y is thus the number of years.

Fun

which function to compute, thus here typically max() or min()

tmp

Specify if we want 'TX' (max. temp.) or 'TN' (min. temp.)

Details

Easier to handle for ggplots

Value

List of 2 elements : df which is a data.frame used to compute ggplots. data is the vector of yearly extrema.

Author(s)

Antoine Pissoort, antoine.pissoort@student.uclouvain.be

Examples

1
2
3
4
# For maxima (default)
max_years <- yearly.extrm()
# For minnima
min_years <- yearly.extrm(Fun = min, tmp = "TN")

proto4426/PissoortThesis documentation built on May 26, 2019, 10:31 a.m.