As written in the associated Issue, presence of NAs in X parameter of tune.spca() was resulting in ambiguous error.
This PR includes a slight refactoring of some of the source code, as well as a check at the start of the function. If there are NAs, they are replaced with 0 and a warning is raised informing users of this imputation. Additionally, added new test file for tune.spca() to ensure coverage is maintained
As written in the associated Issue, presence of
NA
s inX
parameter oftune.spca()
was resulting in ambiguous error.This PR includes a slight refactoring of some of the source code, as well as a check at the start of the function. If there are
NA
s, they are replaced with 0 and a warning is raised informing users of this imputation. Additionally, added new test file fortune.spca()
to ensure coverage is maintained