R/statusMaxLevel.R

statusMaxLevel <-
function (effect, max.level = NULL) 
{
    if (!is.null(max.level) && nchar(effect) > max.level) {
        if (sum(strsplit(effect, "")[[1]] != noia::effectsNames[1]) > 
            max.level) 
            return(FALSE)
    }
    return(TRUE)
}

Try the noia package in your browser

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

noia documentation built on March 31, 2023, 6:45 p.m.