R/cdm_positivity_restriction.R

Defines functions cdm_positivity_restriction

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

cdm_positivity_restriction <- function(x, positive)
{
    x <- ifelse( ( x < 0 ) & positive, 0, x )
    return(x)
}

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.