R/Interceptation.R

Defines functions CInt_f

Documented in CInt_f

#' Interceptation
#' @title Canopy interceptation
#' @description This function calculates the amount of rain intercepted in the canopy.
#' @param R Rainfall
#' @param Rstar The maximum amount which the canopy intercepts
#' @return canopy interceptation
#' @examples CInt_f(R = 10, Rstar = 3)
#' @export CInt_f
#' @return


CInt_f = function(R, Rstar){
    if(R <= Rstar){itcp = R}
    else{itcp = Rstar}
    return(itcp)
}

Try the Ecohydmod package in your browser

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

Ecohydmod documentation built on May 2, 2019, 3:30 p.m.