Skip to content

Commit 92d6f0e

Browse files
committed
Move comments
1 parent df7cb63 commit 92d6f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/pca-utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ match.type <- function(type, ...) {
7777
}
7878

7979

80+
# Generic and methods for the extraction of raw, unscaled, variables scores from a Principal Component Analysis object
8081
var.scores <- function(x, ...) {
81-
# Generic for the extraction of raw, unscaled, variables scores from a Principal Component Analysis object
8282
UseMethod("var.scores")
8383
}
8484
var.scores.prcomp <- function(x, ...) { x$rotation }
@@ -97,8 +97,8 @@ var.scores.pcaRes <- function(x, ...) { x@loadings }
9797
var.scores.pca <- function(x, ...) { x$c1 }
9898
var.scores.rda <- function(x, ...) { x$CA$v }
9999

100+
# Generic and methods for the extraction of raw, unscaled, observations scores from a Principal Component Analysis object
100101
obs.scores <- function(x, ...) {
101-
# Generic for the extraction of raw, unscaled, observations scores from a Principal Component Analysis object
102102
UseMethod("obs.scores")
103103
}
104104
obs.scores.prcomp <- function(x, eig, ...) { t(t(x$x) / sqrt(nrow(x$x) - 1) / sqrt(eig)) }

0 commit comments

Comments
 (0)