Learn R Programming

RCTS (version 0.2.4)

handle_macropca_errors: Helpfunction in robustpca().

Description

It handles possible thrown errors in MacroPCA.

Usage

handle_macropca_errors(
  object,
  temp,
  KMAX,
  number_eigenvectors,
  verbose = FALSE
)

Value

matrix of which the columns contain the chosen amount of eigenvectors of object

Arguments

object

input

temp

this is the result of the trycatch block of using macropca on object

KMAX

parameter kmax in MacroPCA

number_eigenvectors

number of principal components that are needed

verbose

when TRUE, it prints messages