R/pw.aw.R

Defines functions pw.aw

Documented in pw.aw

pw.aw <-
    function(Td, warn = TRUE) {
        ## Author: Rene Locher
        ## Version 2019-01-30
        x <- Td
        x[is.na(x)] <- 0
        if (any(x < -45 | x > 60) & warn)
            warning("Some temperatures are less than -45 deg C or more than 60 deg C!")
        return(6.112*exp(17.62*Td/(243.12 + 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.