R/ResultSet-varLabels.R

#' @describeIn ResultSet Returns the names of the variables of the models used in
#' a \code{ResultSet}.
setMethod(
    f = "varLabels",
    signature="ResultSet",
    definition = function(object) {
        return(lapply(object@results, function(x) {
            if(class(x$result) == "MArrayLM") {
                colnames(x$result$design)
            } else {
                NULL
            }
        }))
    })

Try the MultiDataSet package in your browser

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

MultiDataSet documentation built on Jan. 31, 2021, 2:01 a.m.