R/printCI.R

Defines functions printCI

Documented in printCI

printCI = function(x, fmt){
    if(length(x)!=2)
        stop("x must have be a vector of length 2")
    strFmt = paste('(',fmt,', ',fmt,')',sep='')
    strResult = sprintf(strFmt, x[1], x[2])
    return(strResult)
}

Try the dafs package in your browser

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

dafs documentation built on April 11, 2022, 5:06 p.m.