computeET0 | R Documentation |
computes ET0, accroding to Hargreaves equation
computeET0(lat, dates, tx, tn)
lat |
Latitude (Integer) |
dates |
Vector of dates |
tx |
Vector of maximum temperature data |
tn |
Vector of minimum temperature data |
#' @title Occurrence and length of binary spells #' @description Computes ccurrence and length of binary spells) #' @param v Vector #' @author R. Manzanas
binSpell <- function(v) ix <- c(which(v[-length(v)] != v[-1]), length(v)); out <- list() out$len <- diff(c(0, ix)) out$val <- v[ix] return(out)
R. Manzanas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.