R/mice_multilevel_doCall_suppressWarnings.R

Defines functions mice_multilevel_doCall_suppressWarnings

## File Name: mice_multilevel_doCall_suppressWarnings.R
## File Version: 0.06

#######################################################
# calls a function and suppresses warnings if requested

mice_multilevel_doCall_suppressWarnings <- function( what, args, warnings=TRUE){
    if (warnings){
        res <- do.call( what=what, args=args)
    } else {
        suppressWarnings(
            res <- do.call( what=what, args=args)
            )
    }
    return(res)
}

Try the miceadds package in your browser

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

miceadds documentation built on Jan. 7, 2023, 1:09 a.m.