R/ExposomePCA-ndim.R

#' @describeIn ExposomePCA Number of principal components in an ExposomePCA.
setMethod(
    f = "ndim",
    signature="ExposomePCA",
    definition = function(object) {
        ncol(data.frame(object@pca$var$coord))
    }
)

Try the rexposome package in your browser

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

rexposome documentation built on March 13, 2021, 2:01 a.m.