R/loadings.R

# LOADINGS
#' @include AllGenerics.R
NULL

# PCA ==========================================================================
#' @export
#' @rdname loadings
#' @aliases loadings,PCA-method
setMethod(
  f = "loadings",
  signature = c(x = "PCA"),
  definition = function(x) {
    loads <- x@columns@standard
    class(loads) <- "loadings"
    return(loads)
  }
)

Try the dimensio package in your browser

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

dimensio documentation built on Nov. 25, 2023, 1:08 a.m.