View source: R/indicesFAO_tier1.R
yearStartEnd | R Documentation |
Function to find the position marking the start and the end of a given year (or a user-defined portion of the year)
yearStartEnd(dates, year, year.start = NULL, year.end = NULL)
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] |
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
R. Manzanas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.