R/pw.ai.R

Defines functions pw.ai

Documented in pw.ai

pw.ai <-
    function(Td, warn = TRUE) {
        ## Author: Rene Locher
        ## Version 2019-01-30
        x <- Td
        x[is.na(x)] <- 0
        if (any(x < -65 | x > 0) & warn)
            warning("Some temperatures are less than -65 deg C or more than 0 deg C!")
        return(6.112*exp(22.46*Td/(272.62 + Td)))
    }

Try the IDPmisc package in your browser

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

IDPmisc documentation built on Jan. 21, 2020, 5:06 p.m.