View source: R/indicesFAO_tier1.R
nd_thre | R Documentation |
Function to compute the number of days exceeding (either below or above) a given threshold
nd_thre(
any,
dates,
threshold,
direction = "geq",
year = NULL,
year.start = NULL,
year.end = NULL,
pnan = 25,
lat = NULL
)
any |
Vector with data of ANY variable (e.g. daily mean temperature) |
dates |
Matrix containing the full range of dates corresponding to "data" (ndates x 3 size); e.g. rbind(c(1995, 3, 1), c(1995, 3, 2), ...) |
threshold |
Threshold considered. Must be in the same units of "data" |
direction |
"geq" (greater or equal to) or "leq" (lower or equal to) |
year |
Vector with years of interest (e.g. 1990:1995) |
year.start |
Vector of dates [in "YYYY-MM-DD" format] defining the beginning of a portion of interest within each year (e.g., the agronomic season) |
year.end |
Vector of dates [in "YYYY-MM-DD" format] defining the end of a portion of interest within each year (e.g., the agronomic season) |
pnan |
Any year with a percentage of NA data above "pnan" will be ignored |
lat |
Latitude (NULL) to indicate that latitude information is not used. |
Number of days (per year)
R. Manzanas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.