R/cdm_squeeze.R

## File Name: cdm_squeeze.R
## File Version: 0.05

#*********************************
# copied squeeze function from mice package
cdm_squeeze <- function (x, bounds )
{
    x[x < bounds[1] ] <- bounds[1]
    x[x > bounds[2] ] <- bounds[2]
    return(x)
}

squeeze.cdm <- cdm_squeeze

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.