mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 08:21:51 +02:00
(v1.4.0.9039) more unit tests
This commit is contained in:
2
R/pca.R
2
R/pca.R
@ -111,7 +111,7 @@ pca <- function(x,
|
||||
x <- cbind(x.bak[, sapply(x.bak, function(y) !is.numeric(y) & !all(is.na(y))), drop = FALSE], x)
|
||||
}
|
||||
|
||||
x <- pm_ungroup(x) # would otherwise select the grouping vars
|
||||
x <- pm_ungroup(x) # would otherwise select the grouping vars
|
||||
x <- x[rowSums(is.na(x)) == 0, ] # remove columns containing NAs
|
||||
|
||||
pca_data <- x[, which(sapply(x, function(x) is.numeric(x)))]
|
||||
|
Reference in New Issue
Block a user