yearStartEnd: Function to find the position marking the start and the end...

View source: R/indicesFAO_tier1.R

yearStartEndR Documentation

Function to find the position marking the start and the end of a given year (or a user-defined portion of the year)

Description

Function to find the position marking the start and the end of a given year (or a user-defined portion of the year)

Usage

yearStartEnd(dates, year, year.start = NULL, year.end = NULL)

Arguments

dates

Matrix containing the full range of dates (ndates x 3 size); e.g. rbind(c(1995, 3, 1), c(1995, 3, 2), ...)

year

Year of interest (e.g. 1995)

year.start

User-defined start of the year [in "YYYY-MM-DD" format]

year.end

User-defined end of the year [in "YYYY-MM-DD" format]

Value

Indices marking the start and the end of a given year (or a user-defined portion of the year). The search is done within the "dates" matrix

Author(s)

R. Manzanas


SantanderMetGroup/climate4R.indices documentation built on July 3, 2023, 11:02 p.m.