R/sirt_max.R

Defines functions sirt_max

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

sirt_max <- function(x, value=0)
{
    y <- x[ ! is.na(x) ]
    if (length(y)>0){
        z <- max(x, na.rm=TRUE)
    } else {
        z <- 0
    }
    return(z)
}

Try the sirt package in your browser

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

sirt documentation built on Nov. 5, 2025, 6:48 p.m.