R/transformOutput.R

##############################################################################
## package 'secrdesign'
## transformOutput.R
## 2023-04-15
##############################################################################

transformOutput <- function (object, extractfn, outputtype = "predicted", ...) {
    object$output <- lapply(object$output, function(x) lapply(x, extractfn, ...))
    outputtype(object) <- outputtype
    object$extractfn <- extractfn
    object
}

Try the secrdesign package in your browser

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

secrdesign documentation built on April 3, 2025, 9:28 p.m.