R/pw.R

Defines functions pw

Documented in pw

pw <-
    function(Td, warn = TRUE){
        ## Author: Rene Locher
        ## Version 2019-01-30

        x <- Td
        x[is.na(x)] <- 0
        if (any(x < -65 | x > 60) & warn)
            warning("Some temperatures are less than -65 deg C or more than 60 deg C!")

        return(ifelse(Td > 0, pw.aw(Td, warn=FALSE), pw.ai(Td, warn=FALSE)))
    }

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.