R/mdmb_squeeze_double.R

Defines functions mdmb_squeeze_double

## File Name: mdmb_squeeze_double.R
## File Version: 0.02

mdmb_squeeze_double <- function(val, min=-Inf, max=Inf)
{
    if( val > max ){
        val <- max
    } else {
        if (val < min){
            val <- min
        }
    }
    return(val)
}
alexanderrobitzsch/mdmb documentation built on July 18, 2024, 11:14 p.m.