R/f_postemp.R

Defines functions postemp

Documented in postemp

#' Function to Positive Temperature index
#'
#' @description Computes Positive Temperature index from monthly temperature.
#' @param t Monthly average temperature data (12 nueric values).
#' @return Positive Temperature index
#' @examples
#' postemp(rnorm(12, 18, 6))
#' @export
#'
postemp <- function(t){ sum(t[which(t > 0)])}

Try the bioclim package in your browser

Any scripts or data that you put into this service are public.

bioclim documentation built on Nov. 2, 2023, 6:06 p.m.